ui-widgets: a List rule head reports no disclosure and no expanded state

Contract ap.AP6: the divider row has no disclosure and its group is always open, but the row still declared a
disclosure button that a click could not reach.
This commit is contained in:
bflatastic
2026-11-22 08:17:59 +07:00
parent e14eb05b53
commit 0fb47e5842
+2 -1
View File
@@ -430,7 +430,8 @@ impl Component for ListRow<'_> {
if self.progress.is_some() {
access.node(PROGRESS, Role::PROGRESS_INDICATOR).name = Name::Text(label.to_owned());
}
if let Some(open) = self.group {
// A rule head's group is always open and has no disclosure.
if let Some(open) = self.group.filter(|_| !self.rule_head) {
access.expanded(open);
if !self.disclosure_by_host {
let pattern = if open { &words.collapse } else { &words.expand };