fresh icon indicating copy to clipboard operation
fresh copied to clipboard

bugfix: autofocus didn't work in example Input component

Open skybrian opened this issue 2 years ago • 0 comments

Disabled elements can't receive focus. If autofocus is requested, we shouldn't disable the input element on startup, or it will have no effect.

The easiest way to fix it is to leave the input element enabled. However, I'm not sure what the other consequences of that are.

(Note: this is how I fixed it in my app, but I haven't tested this patch.)

skybrian avatar Jan 25 '24 01:01 skybrian