mirror of
https://github.com/penpot/penpot.git
synced 2025-02-03 21:09:00 -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}
|
{::mf/wrap-props false}
|
||||||
[{:keys [on-submit form children class]}]
|
[{:keys [on-submit form children class]}]
|
||||||
(let [on-submit' (mf/use-fn
|
(let [on-submit' (mf/use-fn
|
||||||
|
(mf/deps on-submit)
|
||||||
(fn [event]
|
(fn [event]
|
||||||
(dom/prevent-default event)
|
(dom/prevent-default event)
|
||||||
(when (fn? on-submit)
|
(when (fn? on-submit)
|
||||||
|
|
Loading…
Add table
Reference in a new issue