Skip to content

Commit b6ab1dc

Browse files
committed
fix(web): trim ariaLabel before setting on inner slider input
1 parent be2b659 commit b6ab1dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎engine/src/flutter/lib/web_ui/lib/src/engine/semantics/incrementable.dart‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class SemanticIncrementable extends SemanticRole {
121121
super.update();
122122

123123
final String? ariaLabel = element.getAttribute('aria-label');
124-
if (ariaLabel != null && ariaLabel.isNotEmpty) {
124+
if (ariaLabel != null && ariaLabel.trim().isNotEmpty) {
125125
_element.setAttribute('aria-label', ariaLabel);
126126
} else {
127127
_element.removeAttribute('aria-label');

0 commit comments

Comments
 (0)