(core) Don't override search on Code View and Access Rules pages.

Summary:
On some pages, Grist search doesn't work, so better to omit it and give
a chance to browser's native search.

Test Plan: Existing search tests should pass. Tested manually that shortcuts now open native browser search on Code View and Access Rules pages.

Reviewers: jarek

Reviewed By: jarek

Differential Revision: https://phab.getgrist.com/D3703
This commit is contained in:
Dmitry S
2022-11-14 09:34:50 -05:00
parent 044d7a1e5c
commit ccbdeb71e5
2 changed files with 25 additions and 9 deletions

View File

@@ -171,6 +171,8 @@ export function searchBar(model: SearchModel, testId: TestId = noTestId) {
searchWrapper.cls('-expand', model.isOpen),
dom.autoDispose(commandGroup),
dom.autoDispose(lis),
// Make sure we don't attempt to call delayed callback after disposal.
dom.onDispose(() => toggleMenu.cancel()),
cssHoverCircle(
cssTopBarBtn('Search',
testId('icon'),