mirror of
https://github.com/penpot/penpot.git
synced 2025-03-12 15:51:37 -05:00
✨ Refactor select all on pending numeric input
This commit is contained in:
parent
ea753da0ae
commit
8b81f700a5
1 changed files with 0 additions and 5 deletions
|
@ -199,9 +199,6 @@
|
||||||
ext-delay-ref (mf/use-ref nil)
|
ext-delay-ref (mf/use-ref nil)
|
||||||
ext-duration-ref (mf/use-ref nil)
|
ext-duration-ref (mf/use-ref nil)
|
||||||
|
|
||||||
select-text
|
|
||||||
(fn [ref] (fn [_] (dom/select-text! (mf/ref-val ref))))
|
|
||||||
|
|
||||||
change-event-type
|
change-event-type
|
||||||
(fn [event]
|
(fn [event]
|
||||||
(let [value (-> event dom/get-target dom/get-value d/read-string)]
|
(let [value (-> event dom/get-target dom/get-value d/read-string)]
|
||||||
|
@ -336,7 +333,6 @@
|
||||||
[:span.element-set-subtitle.wide (tr "workspace.options.interaction-delay")]
|
[:span.element-set-subtitle.wide (tr "workspace.options.interaction-delay")]
|
||||||
[:div.input-element {:title (tr "workspace.options.interaction-ms")}
|
[:div.input-element {:title (tr "workspace.options.interaction-ms")}
|
||||||
[:> numeric-input {:ref ext-delay-ref
|
[:> numeric-input {:ref ext-delay-ref
|
||||||
:on-focus (select-text ext-delay-ref)
|
|
||||||
:on-change change-delay
|
:on-change change-delay
|
||||||
:value (:delay interaction)
|
:value (:delay interaction)
|
||||||
:title (tr "workspace.options.interaction-ms")}]
|
:title (tr "workspace.options.interaction-ms")}]
|
||||||
|
@ -523,7 +519,6 @@
|
||||||
[:span.element-set-subtitle.wide (tr "workspace.options.interaction-duration")]
|
[:span.element-set-subtitle.wide (tr "workspace.options.interaction-duration")]
|
||||||
[:div.input-element {:title (tr "workspace.options.interaction-ms")}
|
[:div.input-element {:title (tr "workspace.options.interaction-ms")}
|
||||||
[:> numeric-input {:ref ext-duration-ref
|
[:> numeric-input {:ref ext-duration-ref
|
||||||
:on-focus (select-text ext-duration-ref)
|
|
||||||
:on-change change-duration
|
:on-change change-duration
|
||||||
:value (-> interaction :animation :duration)
|
:value (-> interaction :animation :duration)
|
||||||
:title (tr "workspace.options.interaction-ms")}]
|
:title (tr "workspace.options.interaction-ms")}]
|
||||||
|
|
Loading…
Add table
Reference in a new issue