mirror of
https://github.com/penpot/penpot.git
synced 2025-02-03 12:59:12 -05:00
🐛 Add missing mf/deps on form component
This commit is contained in:
parent
6e39c26704
commit
9149772ce9
1 changed files with 1 additions and 0 deletions
|
@ -327,6 +327,7 @@
|
|||
{::mf/wrap-props false}
|
||||
[{:keys [on-submit form children class]}]
|
||||
(let [on-submit' (mf/use-fn
|
||||
(mf/deps on-submit)
|
||||
(fn [event]
|
||||
(dom/prevent-default event)
|
||||
(when (fn? on-submit)
|
||||
|
|
Loading…
Add table
Reference in a new issue