Fix save changes bug in Firefox browser (https://github.com/woocommerce/woocommerce-blocks/pull/8754)
This commit is contained in:
parent
a5714a6519
commit
547cc76f8e
|
@ -29,6 +29,7 @@ const SaveSettings = () => {
|
|||
onClick={ (
|
||||
event: React.MouseEvent< HTMLButtonElement, MouseEvent >
|
||||
) => {
|
||||
event.preventDefault();
|
||||
const target = event.target as HTMLButtonElement;
|
||||
if ( target?.form?.reportValidity() ) {
|
||||
save();
|
||||
|
|
Loading…
Reference in New Issue