jpsember / golang-base

Jeff's basic Go library
0 stars 0 forks source link

Signing in, cursor disappears when moving from password to verify password #90

Closed jpsember closed 1 year ago

jpsember commented 1 year ago

Click on the password field, enter a password; click on the verify field (which is empty); this triggers an ajax call and perhaps a render, so the cursor disappears?

jpsember commented 1 year ago

Relevant: https://webtips.dev/webtips/javascript/how-to-get-caret-position-with-javascript

We probably want to include the cursor position as part of the widget's value for HTML elements such as text, password, textarea

jpsember commented 1 year ago

If user explicitly makes a widget lose its focus (e.g. by pressing on some other button), the focus should not go back to that item.

In the gallery, try entering an 'Animal' name in the gallery, then click on the 'Launch' button.