CleverCloud / clever-components

Collection of Web Components by Clever Cloud
https://www.clever-cloud.com/doc/clever-components/
Apache License 2.0
215 stars 19 forks source link

form controls: focus lost upon toggling disabled mode #1102

Open florian-sanders-cc opened 1 week ago

florian-sanders-cc commented 1 week ago

Context

During async API calls, we disable form controls. Since disabled form controls cannot receive focus, the focus is lost.

When users are submitting the form using the submit button, this does not create any issue because the element does not actually disable the inner

florian-sanders-cc commented 1 week ago

Note: I forgot to specify that this issue depends on the browser used to reproduce because not all of them makes disabled form control unfocusable :upside_down_face: