elements icon indicating copy to clipboard operation
elements copied to clipboard

Disable interactive elements until the form is ready

Open aeneasr opened this issue 10 months ago • 0 comments

Preflight checklist

Ory Network Project

No response

Describe your problem

Elements like buttons sometimes don't trigger onClick because react has not yet hydrated everything. It still shows up though because of SSR.

Describe your ideal solution

We should disable interactive elements such as visible input forms, buttons, and submit actions with disabled=true until the form is ready to handle events. react-hook-form should have an easy way to identify in which state the form is to solve this.

Workarounds or alternatives

None

Version

master

Additional Context

No response

aeneasr avatar May 08 '25 09:05 aeneasr