How to animate when the button is disabled on submit in LiveView?

As of LiveView 0.17.6 (this change) you should be able to just add phx-disable-with with an empty value. Then it will get disabled but the content will not change.

4 Likes