mirror of
https://github.com/penpot/penpot.git
synced 2025-01-21 06:02:32 -05:00
Disable password manager completion
This commit is contained in:
parent
86d7979e1e
commit
6bacd1d663
1 changed files with 13 additions and 7 deletions
|
@ -24,10 +24,16 @@
|
|||
|
||||
(mf/defc labeled-input
|
||||
{::mf/wrap-props false}
|
||||
[{:keys [input-ref label default-value on-change auto-focus?]}]
|
||||
[:label {:class (stl/css :labeled-input)}
|
||||
[:span {:class (stl/css :label)} label]
|
||||
[:input {:ref input-ref
|
||||
:default-value default-value
|
||||
:autoFocus auto-focus?
|
||||
:on-change on-change}]])
|
||||
[{:keys [input-ref label default-value on-change auto-focus? auto-complete?]}]
|
||||
(let [input-props (cond-> {:ref input-ref
|
||||
:default-value default-value
|
||||
:autoFocus auto-focus?
|
||||
:on-change on-change}
|
||||
;; Disable auto-complete on form fields for proprietary password managers
|
||||
;; https://github.com/orgs/tokens-studio/projects/69/views/11?pane=issue&itemId=63724204
|
||||
(not auto-complete?) (assoc :data-1p-ignore true
|
||||
:data-lpignore true
|
||||
:autoComplete "off"))]
|
||||
[:label {:class (stl/css :labeled-input)}
|
||||
[:span {:class (stl/css :label)} label]
|
||||
[:& :input input-props]]))
|
||||
|
|
Loading…
Add table
Reference in a new issue