Refresh the aria label when the tooltip value is updated
authorAlexander Ebert <ebert@woltlab.com>
Tue, 23 Jun 2020 17:54:55 +0000 (19:54 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 23 Jun 2020 17:54:55 +0000 (19:54 +0200)
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Tooltip.js

index 3cdb58fed4315c86d7b688068a9d5026f9d53cfb..24adf15d0b1b9c0691b9260602336f51db5f053b 100644 (file)
@@ -97,6 +97,7 @@ define(['Environment', 'Dom/ChangeListener', 'Ui/Alignment'], function(Environme
                        
                        if (title !== '') {
                                elData(element, 'tooltip', title);
+                               elAttr(element, 'aria-label', title);
                                element.removeAttribute('title');
                        }