Skip to content

Commit 8392850

Browse files
authored
fix: Don't report selected state when toggled on Android (#689)
1 parent 6146089 commit 8392850

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

platforms/android/src/node.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,7 @@ impl NodeWrapper<'_> {
6767
}
6868

6969
fn is_selected(&self) -> bool {
70-
match self.0.role() {
71-
// https://www.w3.org/TR/core-aam-1.1/#mapping_state-property_table
72-
// SelectionItem.IsSelected is set according to the True or False
73-
// value of aria-checked for 'radio' and 'menuitemradio' roles.
74-
Role::RadioButton | Role::MenuItemRadio => self.0.toggled() == Some(Toggled::True),
75-
// https://www.w3.org/TR/wai-aria-1.1/#aria-selected
76-
// SelectionItem.IsSelected is set according to the True or False
77-
// value of aria-selected.
78-
_ => self.0.is_selected().unwrap_or(false),
79-
}
70+
self.0.is_selected().unwrap_or(false)
8071
}
8172

8273
fn content_description(&self) -> Option<String> {

0 commit comments

Comments
 (0)