From 5e73e68ef70875e98d25f55bf299322dc92a36cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Moya?= Date: Fri, 23 Apr 2021 13:17:26 +0200 Subject: [PATCH] :bug: Disable autocomplete color names --- frontend/src/app/main/ui/components/color_input.cljs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/frontend/src/app/main/ui/components/color_input.cljs b/frontend/src/app/main/ui/components/color_input.cljs index 112aecf33..e6019d5b3 100644 --- a/frontend/src/app/main/ui/components/color_input.cljs +++ b/frontend/src/app/main/ui/components/color_input.cljs @@ -86,20 +86,22 @@ (apply-value new-value) (update-input value))))) - list-id (str "colors-" (uuid/next)) + ;; list-id (str "colors-" (uuid/next)) props (-> props (obj/without ["value" "onChange"]) (obj/set! "type" "text") (obj/set! "ref" ref) - (obj/set! "list" list-id) + ;; (obj/set! "list" list-id) (obj/set! "defaultValue" value) (obj/set! "onKeyDown" handle-key-down) (obj/set! "onBlur" handle-blur))] [:* [:> :input props] - [:datalist {:id list-id} - (for [color-name uc/color-names] - [:option color-name])]])) + ;; FIXME: this causes some weird interactions because of using apply-value + ;; [:datalist {:id list-id} + ;; (for [color-name uc/color-names] + ;; [:option color-name])] + ]))