fix(GlSearchBoxByType): Fix clear tooltip flash
What does this MR do?
Fixes the tooltip "flash" when the "clear" button is clicked inside a GlSearchBoxByType
.
This behavior was caused by !1550 (merged), which used v-show
to hide the clear button instead of v-if
. Because the clear button was no longer removed from the DOM, the tooltip continues to be rendered after the button is hidden, but in a different area of the screen until it fades out.
Before
After
Context
This MR essentially undoes the changes in !1550 (merged) without re-introducing the bug it fixed.
Edited by Nathan Friend