I’m using data-disable-with (which I assume uses Rails UJS) to disable a submit button on form submission. If a user navigates back to the form after submission though, it reloads with the button in the disabled state.
Does anyone have an elegant way to either restore the original value, or even replace the UJS behaviour completely to achieve disabling conveniently, whilst preserving proper back button functionality.