Skip to content

fix(GlSearchBoxByType): Fix clear tooltip flash

Nathan Friend requested to merge nfriend-fix-flashing-clear-button-tooltip into master

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

2020-07-11_14.17.52

After

2020-07-11_14.25.27

Context

This MR essentially undoes the changes in !1550 (merged) without re-introducing the bug it fixed.

Edited by Nathan Friend

Merge request reports

Loading