When saving a form, usually it is not instant, and will take a few seconds for the data to be saved / validated.
Is there a way to set the save bar state to loading? For the Polaris Web components form.
<form
data-save-bar
onsubmit="console.log('submit', new FormData(event.target)); event.preventDefault();"
>
<label>
Name:
<input name="username" />
</label>
</form>
I tried adding “loading” attribute to the form, but it does not work.