Added slighty trigger delay for Firefox
authorAlexander Ebert <ebert@woltlab.com>
Tue, 7 Nov 2017 13:50:31 +0000 (14:50 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 7 Nov 2017 13:50:31 +0000 (14:50 +0100)
wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui/Style/Editor.js

index 8773d606b0cee71022fc906fa36fbb0efa98c9b5..1538712f1b26fbbc8892dcc200f8d611431376c9 100644 (file)
@@ -281,7 +281,11 @@ define(['Ajax', 'Core', 'Dictionary', 'Dom/Util', 'EventHandler', 'Ui/Screen'],
                                        toggleSelectionMode();
                                        
                                        select.value = elData(region, 'region');
-                                       Core.triggerEvent(select, 'change');
+                                       
+                                       // Firefox does not trigger this event while the click handler is still active
+                                       window.setTimeout(function() {
+                                               Core.triggerEvent(select, 'change');
+                                       }, 10);
                                });
                        });