Skip to content

Commit 74e3529

Browse files
authored
Merge pull request CodSpeedHQ#9 from aspnxdd/feat/close-drawer-click-outside
feat: click outside drawer
2 parents 1329469 + aa5feba commit 74e3529

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/drawer.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ fn app(cx: Scope) -> Element {
127127
rect {
128128
height: "100%",
129129
width: "100%",
130+
onclick: move |_| { opened.set(false) },
130131
rect {
131132
height: "30",
132133
width: "80",

0 commit comments

Comments
 (0)