mirror of
https://github.com/penpot/penpot.git
synced 2025-06-07 22:01:38 +02:00
🐛 Fix layer and component names inputs not having their text selectable on Firefox
This commit is contained in:
parent
7fa026da15
commit
78aafa4635
2 changed files with 21 additions and 19 deletions
|
@ -177,8 +177,9 @@
|
|||
on-mount
|
||||
(fn []
|
||||
(let [dom (mf/ref-val ref)]
|
||||
(.setAttribute dom "draggable" true) ;; In firefox it needs to be draggable for problems with event handling.
|
||||
;; It will stop the drag operation in on-drag-start
|
||||
;; In firefox it needs to be draggable for problems with event handling.
|
||||
;; It will stop the drag operation in on-drag-start
|
||||
(.setAttribute dom "draggable" (and draggable? (not disabled)))
|
||||
|
||||
;; Register all events in the (default) bubble mode, so that they
|
||||
;; are captured by the most leaf item. The handler will stop
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue