Fixed popover flicker on re-entry
authorAlexander Ebert <ebert@woltlab.com>
Wed, 16 Nov 2016 12:51:35 +0000 (13:51 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 16 Nov 2016 15:14:14 +0000 (16:14 +0100)
wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Popover.js

index 927a601010d306a356423b86b344855d4f3cc4f0..8befa915dea5f508c3eba750106f6665bb16c357 100644 (file)
@@ -296,9 +296,11 @@ define(['Ajax', 'Dictionary', 'Environment', 'Dom/ChangeListener', 'Dom/Util', '
                        
                        var forceHide = false;
                        if (_popover.classList.contains('active')) {
-                               this._hide();
-                               
-                               forceHide = true;
+                               if (_activeId !== _hoverId) {
+                                       this._hide();
+                                       
+                                       forceHide = true;
+                               }
                        }
                        else if (_popoverContent.childElementCount) {
                                forceHide = true;