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={ (
|
onClick={ (
|
||||||
event: React.MouseEvent< HTMLButtonElement, MouseEvent >
|
event: React.MouseEvent< HTMLButtonElement, MouseEvent >
|
||||||
) => {
|
) => {
|
||||||
|
event.preventDefault();
|
||||||
const target = event.target as HTMLButtonElement;
|
const target = event.target as HTMLButtonElement;
|
||||||
if ( target?.form?.reportValidity() ) {
|
if ( target?.form?.reportValidity() ) {
|
||||||
save();
|
save();
|
||||||
|
|
Loading…
Reference in New Issue