summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorJuuso Valli <juuso@vaadin.com>2014-07-24 10:54:42 +0300
committerBogdan Udrescu <bogdan@vaadin.com>2014-07-28 12:46:03 +0000
commite7632140cfe81062f1f81408c643e722661e60b5 (patch)
treeb8800359c710f2bcbcbe7e67d7b6bd064e2201e8 /client
parent0182043e6cdb7ced238fe97090cc337941b11779 (diff)
downloadvaadin-framework-e7632140cfe81062f1f81408c643e722661e60b5.tar.gz
vaadin-framework-e7632140cfe81062f1f81408c643e722661e60b5.zip
Fix VWindow Vai-Aria roles for alertdialogs (#14289)
Change-Id: Ie33ef684f2177fe1807f95bf234031cc3a44f317
Diffstat (limited to 'client')
-rw-r--r--client/src/com/vaadin/client/ui/VWindow.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/client/src/com/vaadin/client/ui/VWindow.java b/client/src/com/vaadin/client/ui/VWindow.java
index 83a0001ad8..495e230156 100644
--- a/client/src/com/vaadin/client/ui/VWindow.java
+++ b/client/src/com/vaadin/client/ui/VWindow.java
@@ -233,7 +233,7 @@ public class VWindow extends VOverlay implements ShortcutActionHandlerOwner,
/*
* Stores the element that has focus in the application UI when the
* window is opened, so it can be restored when the window closes.
- *
+ *
* This is currently implemented for the case when one non-modal window
* can be open at the same time, and the focus is not changed while the
* window is open.
@@ -253,7 +253,7 @@ public class VWindow extends VOverlay implements ShortcutActionHandlerOwner,
/*
* Restores the previously stored focused element.
- *
+ *
* When the focus was changed outside the window while the window was
* open, the originally stored element is restored.
*/
@@ -640,7 +640,7 @@ public class VWindow extends VOverlay implements ShortcutActionHandlerOwner,
* correctly if clicking on the "close" button in the window header but
* closing the window from a button for example in the window will fail.
* Symptom described in #10776
- *
+ *
* The problematic part is that for the focus to be returned correctly
* an input element needs to be focused in the root panel. Focusing some
* other element apparently won't work.
@@ -1411,7 +1411,7 @@ public class VWindow extends VOverlay implements ShortcutActionHandlerOwner,
* WAI-ARIA role to set for the window
*/
public void setWaiAriaRole(WindowRole role) {
- if ("alertdialog".equals(role)) {
+ if (role == WindowRole.ALERTDIALOG) {
Roles.getAlertdialogRole().set(getElement());
} else {
Roles.getDialogRole().set(getElement());