fix the find widget hide issue (#21937)

This commit is contained in:
Alan Ren
2023-02-14 18:19:40 -08:00
committed by GitHub
parent 4f6fe5955d
commit 447a9d0f34
2 changed files with 3 additions and 2 deletions

View File

@@ -262,6 +262,7 @@ export class FindWidget extends Widget implements IOverlayWidget, IVerticalSashL
setTimeout(() => {
this._domNode.classList.add('visible');
this._domNode.setAttribute('aria-hidden', 'false');
this._domNode.style.display = '';
if (!animate) {
this._domNode.classList.add('noanimation');
setTimeout(() => {
@@ -281,6 +282,7 @@ export class FindWidget extends Widget implements IOverlayWidget, IVerticalSashL
this._domNode.classList.remove('visible');
this._domNode.setAttribute('aria-hidden', 'true');
this._domNode.style.display = 'none';
if (focusTheEditor) {
this._tableController.focus();
}
@@ -471,6 +473,7 @@ export class FindWidget extends Widget implements IOverlayWidget, IVerticalSashL
this._domNode = document.createElement('div');
this._domNode.className = 'editor-widget find-widget';
this._domNode.setAttribute('aria-hidden', 'true');
this._domNode.style.display = 'none';
this._domNode.appendChild(findPart);

View File

@@ -255,11 +255,9 @@ export class ProfilerTableEditor extends EditorPane implements IProfilerControll
if (e.isRevealed) {
if (this._findState.isRevealed) {
node.style.top = '0px';
node.style.display = '';
this._updateFinderMatchState();
} else {
node.style.top = '';
node.style.display = 'none';
}
}