#Keep focus on input

3 messages · Page 1 of 1 (latest)

night pilot
#

Hi, how can I keep focus on the custom number input, while clicking the increment button?

rugged hornet
#

In the button click handler, have it call .focus() on the input.

manic dome
#

I think an even better way could be to not let the focus change. I think this should be possible by "event.preventDefault()" maybe?