ory / elements

Ory Elements is a component library that makes building login, registration and account pages for Ory a breeze. Check out the components library on Chromatic https://www.chromatic.com/library?appId=63b58e306cfd32348fa48d50
https://ory.sh
Apache License 2.0
84 stars 41 forks source link

revert: disable button on submit #176

Closed jonas-jonas closed 6 months ago

jonas-jonas commented 6 months ago

Reverts ory/elements#171

This didn't actually work. The reason is, that the click event fires before the submit event of the enclosing form, and disabling the button in the event stops event propagation. There are a few solutions, but IMO we should just get this right in AX2 before spending any more time on this. The underlying issue is fixed either way, and this was purely cosmetic. (From https://github.com/ory/elements/pull/171#issuecomment-1866225524)