RED-9083: prevent search panel from re-opening unexpectedly.
This commit is contained in:
parent
1812c1df90
commit
53cc0f6a10
@ -317,15 +317,8 @@ export class PdfViewer {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const inputElement = iframeWindow.document.getElementById('SearchPanel__input') as HTMLInputElement;
|
const clearSearchButton = iframeWindow.document.getElementsByClassName('clearSearch-button')[0] as HTMLButtonElement;
|
||||||
|
clearSearchButton?.click();
|
||||||
if (inputElement) {
|
|
||||||
setTimeout(() => (inputElement.value = ''), 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!event.detail.isVisible) {
|
|
||||||
this.documentViewer.clearSearchResults();
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user