jQWidgets Forums
Forum Replies Created
-
Author
-
January 2, 2017 at 10:05 pm in reply to: Restoring input focus after jqxDropDownList closes Restoring input focus after jqxDropDownList closes #90242
Thankyou Peter, this is working well
I was hoping to avoid using a timeout (not 100% sure why its necessary)
But as it appears to be the only way, I will live with it 🙂December 31, 2016 at 2:11 am in reply to: Restoring input focus after jqxDropDownList closes Restoring input focus after jqxDropDownList closes #90216Hi Peter,
Would it be possible for you to check my demo jsfiddle please?
http://jsfiddle.net/te2qhzrb/9/
If you have any suggestions on how I can refocus the text input, after the DropDownList has been closed, that would be very helpful.
Perhaps it is not jqxDropDownList causing it, but even so, I am still left with a problem which I did not have when using a HTML selectHere is the native HTML select which works ok
http://jsfiddle.net/te2qhzrb/11/
I’d really appreciate any advice you can offer!
Thanks
December 29, 2016 at 12:41 am in reply to: Restoring input focus after jqxDropDownList closes Restoring input focus after jqxDropDownList closes #90167This hopefully demonstrates the issue I am having…
December 28, 2016 at 12:27 am in reply to: Restoring input focus after jqxDropDownList closes Restoring input focus after jqxDropDownList closes #90145Hi Peter,
Thanks for the reply. I have added some debugging to jqxDropDownList, but it does not behave as you say….
Whether you select an item via mouse or keyboard, it will issue a ‘close’ event, then an additional ‘change’ event, and finally in renderSelection it explicitly focuses the list div….
this.dropdownlistContent[0].innerHTML = j[0].innerHTML; if (this.focusable && this.isOpened()) { this.focus() }
Then end result is that there seems to be no way for me to handle the listbox being closed, and then restore the focus to a given control, since jqwDropDownList always steals back the focus afterwards
December 8, 2016 at 1:17 pm in reply to: Data attribs on select options? Data attribs on select options? #89694Thankyou, thats very useful
This was the last problem I needed to solve before buying a license 🙂
-
AuthorPosts