This commit is contained in:
Saad Tarhi 2023-03-22 12:45:48 +00:00 committed by GitHub
parent a5714a6519
commit 547cc76f8e
1 changed files with 1 additions and 0 deletions

View File

@ -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();