jarek-foksa / xel

Xel - Widget toolkit for building native-like Electron and Web apps
https://xel-toolkit.org
Other
679 stars 58 forks source link

input/numberinput not updating value on blur (click) #40

Closed haroldiedema closed 6 years ago

haroldiedema commented 6 years ago

I have a form with a couple of number inputs.

If I change the value of a numberinput, then click the submit button while the number input is still focused, the updated value is not retrievable using jQuery.

However, if I focus the number input and press the TAB key to get out of it, the value gets updated and I can retrieve the value using $('x-numberinput').val().

Is there a workaround for this that I can use?

jarek-foksa commented 6 years ago

I have added an ugly fix for now. In the longer run the current approach to focus management will have to be heavily reworked.

haroldiedema commented 6 years ago

Wow, that was quick!

Thank you very much! 👍

edit: verified & tested. Works like a charm 😄