Akryum / Akryum/floating-vue

Tooltip blinking when switching to a different tab

Offen
#189 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
cannot-reproduce need-repro
Vorherrschende Sprache
TypeScript
Sterne
3.5k
Forks
341
Ø Merge
14 Min.
Gemergte PRs (30 T.)
8

Beschreibung

I noticed an error that makes the tooltip to blink when it's open and Vue re-renders.

`




`

Here it's my tooltip. isOpen changes when clicking on the button, and it's the only place where the value changes.

If I let the tooltip open, and then I switch to a different tab (Opening a new one in Chrome, for example), the tooltip will start blinking for a few seconds before stabilizing when going back to the original tab.

The reason this is happening is that $_restartPopper is being called multiple times after going back to the original tab, closing the tooltip (With dispose function) and then reopening it with this.show after checking isOpen is true.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.