Product Editor: Disable autocomplete on product name field (#39211)
This commit is contained in:
parent
ed877abac6
commit
a51f384021
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: tweak
|
||||
|
||||
Disable autocomplete for the product name field.
|
|
@ -170,6 +170,8 @@ export function Edit( { attributes }: BlockEditProps< NameBlockAttributes > ) {
|
|||
) }
|
||||
onChange={ setName }
|
||||
value={ name && name !== AUTO_DRAFT_NAME ? name : '' }
|
||||
autoComplete="off"
|
||||
data-1p-ignore
|
||||
onBlur={ () => {
|
||||
setSkuIfEmpty();
|
||||
validateName();
|
||||
|
|
Loading…
Reference in New Issue