mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-26 03:17:43 +00:00
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:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user