mirror of
https://github.com/penpot/penpot.git
synced 2025-12-12 06:24:17 +01:00
Fix data-keys being converted to camel-case
This commit is contained in:
@@ -36,12 +36,12 @@
|
|||||||
{::mf/wrap-props false}
|
{::mf/wrap-props false}
|
||||||
[{:keys [label input-props auto-complete?]}]
|
[{:keys [label input-props auto-complete?]}]
|
||||||
(let [input-props (cond-> input-props
|
(let [input-props (cond-> input-props
|
||||||
|
:always camel-keys
|
||||||
;; Disable auto-complete on form fields for proprietary password managers
|
;; Disable auto-complete on form fields for proprietary password managers
|
||||||
;; https://github.com/orgs/tokens-studio/projects/69/views/11?pane=issue&itemId=63724204
|
;; https://github.com/orgs/tokens-studio/projects/69/views/11?pane=issue&itemId=63724204
|
||||||
(not auto-complete?) (assoc "data-1p-ignore" true
|
(not auto-complete?) (assoc "data-1p-ignore" true
|
||||||
"data-lpignore" true
|
"data-lpignore" true
|
||||||
:auto-complete "off")
|
:auto-complete "off"))]
|
||||||
:always camel-keys)]
|
|
||||||
[:label {:class (stl/css :labeled-input)}
|
[:label {:class (stl/css :labeled-input)}
|
||||||
[:span {:class (stl/css :label)} label]
|
[:span {:class (stl/css :label)} label]
|
||||||
[:& :input input-props]]))
|
[:& :input input-props]]))
|
||||||
|
|||||||
Reference in New Issue
Block a user