Remove AUTO-DRAFT in product name field on create new product page (#37982)
* Remove AUTO-DRAFT in product name field on create new product page #37930 * Add changelog file * Remove non needed useEffect import
This commit is contained in:
parent
255d5f377c
commit
1514333162
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: minor
|
||||||
|
Type: add
|
||||||
|
|
||||||
|
Remove AUTO-DRAFT in product name field on create new product page #37930
|
|
@ -159,7 +159,7 @@ export function Edit() {
|
||||||
'woocommerce'
|
'woocommerce'
|
||||||
) }
|
) }
|
||||||
onChange={ setName }
|
onChange={ setName }
|
||||||
value={ name || '' }
|
value={ name && name !== AUTO_DRAFT_NAME ? name : '' }
|
||||||
onBlur={ setSkuIfEmpty }
|
onBlur={ setSkuIfEmpty }
|
||||||
/>
|
/>
|
||||||
</BaseControl>
|
</BaseControl>
|
||||||
|
|
Loading…
Reference in New Issue