You can add the save bar by adding data-save-bar=true on the form (more info here)
If you add a form with a numeric input type (form.polaris_text_field type: :number) it works correctly if changing the value by writing a new number manually. If you update the value using the stepper arrows, the save bar doesn't appear
The problem here is that the event is actually fired but bubbles property is missing.
Here's a workaround to temporary fix this:
input.addEventListener("change", (event) => {
if (!event.bubbles) {
input.dispatchEvent(
new Event("change", {
bubbles: true,
})
);
}
});
You can add the save bar by adding
data-save-bar=true
on the form (more info here) If you add a form with a numeric input type (form.polaris_text_field type: :number
) it works correctly if changing the value by writing a new number manually. If you update the value using the stepper arrows, the save bar doesn't appearThe problem here is that the event is actually fired but bubbles property is missing.
Here's a workaround to temporary fix this: