From b01e00637181a7dc74087a2badef853e65feed1c Mon Sep 17 00:00:00 2001 From: Cecile Tonglet Date: Tue, 7 Nov 2023 10:46:55 +0100 Subject: [PATCH] Tree: fix node not visibly disabled --- src/tree.rs | 5 ++++- yewprint-doc/src/tree/example.rs | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/tree.rs b/src/tree.rs index e116ffc..44ca4c4 100644 --- a/src/tree.rs +++ b/src/tree.rs @@ -307,7 +307,8 @@ impl Component for TreeNode { html! {
  • } } else { diff --git a/yewprint-doc/src/tree/example.rs b/yewprint-doc/src/tree/example.rs index d713c5b..642ebb2 100644 --- a/yewprint-doc/src/tree/example.rs +++ b/yewprint-doc/src/tree/example.rs @@ -71,7 +71,8 @@ impl Component for Example { icon: Icon::Tag, icon_intent: Some(Intent::Primary), label: "Outer file".into(), - secondary_label: Some(html!()), + secondary_label: Some(html!()), + disabled: true, data: 3, ..Default::default() }),