Close dialog button could not be pressed via enter key
authorMarcel Werk <burntime@woltlab.com>
Wed, 20 May 2020 18:13:38 +0000 (20:13 +0200)
committerMarcel Werk <burntime@woltlab.com>
Wed, 20 May 2020 18:13:38 +0000 (20:13 +0200)
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js

index 453cd6895418b0dad47436c034686305062246ec..f3e57b4582e7c3bd3c4de1cadb4171437d19612c 100644 (file)
@@ -378,6 +378,7 @@ define(
                        if (options.closable) {
                                var closeButton = elCreate('a');
                                closeButton.className = 'dialogCloseButton jsTooltip';
+                               closeButton.href = '#';
                                elAttr(closeButton, 'role', 'button');
                                elAttr(closeButton, 'tabindex', '0');
                                elAttr(closeButton, 'title', options.closeButtonLabel);