summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--client/src/com/vaadin/client/ui/AriaHelper.java5
-rw-r--r--client/src/com/vaadin/client/ui/VTree.java2
2 files changed, 4 insertions, 3 deletions
diff --git a/client/src/com/vaadin/client/ui/AriaHelper.java b/client/src/com/vaadin/client/ui/AriaHelper.java
index 9f7210f86c..450b25c8da 100644
--- a/client/src/com/vaadin/client/ui/AriaHelper.java
+++ b/client/src/com/vaadin/client/ui/AriaHelper.java
@@ -63,12 +63,13 @@ public class AriaHelper {
}
/**
- * Removes a binding to a caption from the provided Widget.
+ * Removes a binding to a caption added with bindCaption() from the provided
+ * Widget.
*
* @param widget
* Widget, that was bound to a caption before
*/
- public static void clearCaption(Widget widget) {
+ private static void clearCaption(Widget widget) {
Roles.getTextboxRole()
.removeAriaLabelledbyProperty(widget.getElement());
}
diff --git a/client/src/com/vaadin/client/ui/VTree.java b/client/src/com/vaadin/client/ui/VTree.java
index 20b3050a5d..9ad8e5be7c 100644
--- a/client/src/com/vaadin/client/ui/VTree.java
+++ b/client/src/com/vaadin/client/ui/VTree.java
@@ -2215,7 +2215,7 @@ public class VTree extends FocusElementPanel implements VHasDropHandler,
@Override
public void clearAriaCaption() {
- AriaHelper.clearCaption(body);
+ AriaHelper.bindCaption(body, null);
}
}