mirror of
https://github.com/penpot/penpot.git
synced 2026-02-12 22:53:02 +00:00
🐛 Update switch checked state on change prop (#8235)
This commit is contained in:
@@ -67,6 +67,11 @@
|
||||
:on-key-down handle-keydown
|
||||
:disabled disabled?})]
|
||||
|
||||
(mf/use-effect
|
||||
(mf/deps default-checked)
|
||||
(fn []
|
||||
(reset! checked* default-checked)))
|
||||
|
||||
[:> :div props
|
||||
[:div {:id id
|
||||
:class (stl/css :switch-track)}
|
||||
|
||||
Reference in New Issue
Block a user