0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-10 09:08:31 -05:00

Merge pull request #3622 from penpot/azazeln28-fix-blend-mode-select-click

🐛 Fix blend mode select click
This commit is contained in:
Alejandro 2023-09-12 15:50:15 +02:00 committed by GitHub
commit 732805bf0e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,15 +39,8 @@
current-label (get label-index current-value)
is-open? (:is-open? state)
open-dropdown (mf/use-fn
(fn [event]
(dom/stop-propagation event)
(swap! state* assoc :is-open? true)))
close-dropdown (mf/use-fn
(fn [event]
(dom/stop-propagation event)
(swap! state* assoc :is-open? false)))
open-dropdown (mf/use-fn #(swap! state* assoc :is-open? true))
close-dropdown (mf/use-fn #(swap! state* assoc :is-open? false))
select-item
(mf/use-fn