mirror of
https://github.com/penpot/penpot.git
synced 2025-05-16 18:16:12 +02:00
🐛 Disable autocomplete color names
This commit is contained in:
parent
c16434e608
commit
5e73e68ef7
1 changed files with 7 additions and 5 deletions
|
@ -86,20 +86,22 @@
|
||||||
(apply-value new-value)
|
(apply-value new-value)
|
||||||
(update-input value)))))
|
(update-input value)))))
|
||||||
|
|
||||||
list-id (str "colors-" (uuid/next))
|
;; list-id (str "colors-" (uuid/next))
|
||||||
|
|
||||||
props (-> props
|
props (-> props
|
||||||
(obj/without ["value" "onChange"])
|
(obj/without ["value" "onChange"])
|
||||||
(obj/set! "type" "text")
|
(obj/set! "type" "text")
|
||||||
(obj/set! "ref" ref)
|
(obj/set! "ref" ref)
|
||||||
(obj/set! "list" list-id)
|
;; (obj/set! "list" list-id)
|
||||||
(obj/set! "defaultValue" value)
|
(obj/set! "defaultValue" value)
|
||||||
(obj/set! "onKeyDown" handle-key-down)
|
(obj/set! "onKeyDown" handle-key-down)
|
||||||
(obj/set! "onBlur" handle-blur))]
|
(obj/set! "onBlur" handle-blur))]
|
||||||
|
|
||||||
[:*
|
[:*
|
||||||
[:> :input props]
|
[:> :input props]
|
||||||
[:datalist {:id list-id}
|
;; FIXME: this causes some weird interactions because of using apply-value
|
||||||
(for [color-name uc/color-names]
|
;; [:datalist {:id list-id}
|
||||||
[:option color-name])]]))
|
;; (for [color-name uc/color-names]
|
||||||
|
;; [:option color-name])]
|
||||||
|
]))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue