0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-15 17:21:17 -05:00

Hide after-delay trigger in non-frames

This commit is contained in:
Andrés Moya 2021-10-04 17:14:25 +02:00
parent 9f03e353c7
commit 790d532cee

View file

@ -153,10 +153,9 @@
{:value (str (:event-type interaction))
:on-change change-event-type}
(for [[value name] (event-type-names)]
[:option {:value (str value)
:disabled (and (= value :after-delay)
(not= (:type shape) :frame))}
name])]]
(when-not (and (= value :after-delay)
(not= (:type shape) :frame))
[:option {:value (str value)} name]))]]
; Delay
(when (cti/has-delay interaction)