mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
fix(electron): optimize find in page in electron (2) (#9901)
1. find in page should have higher z-index than other modals 2. fix focused texts are not automatically being used as the default input value for searching
This commit is contained in:
@@ -75,9 +75,11 @@ export class FindInPage extends Entity {
|
||||
// TODO(@Peng): hide on navigation
|
||||
}
|
||||
|
||||
findInPage(searchText: string) {
|
||||
findInPage(searchText?: string) {
|
||||
this.onChangeVisible(true);
|
||||
this.searchText$.next(searchText);
|
||||
if (searchText !== undefined) {
|
||||
this.searchText$.next(searchText);
|
||||
}
|
||||
}
|
||||
|
||||
onChangeVisible(visible: boolean) {
|
||||
|
||||
Reference in New Issue
Block a user