jQuery UI Widgets Forums Lists ComboBox Issue with combobox when typing and selecting

This topic contains 2 replies, has 2 voices, and was last updated by  Martin 2 weeks, 1 day ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author

  • trigonoah
    Participant

    I’m using a jqxComboBox and everything appears to be working. If I hit the drop-down button and select something from the list with the mouse, my on(‘select’) method fires as expected. There’s also an on(‘keyup’) event to detect when the user presses the Enter, Backspace or Delete keys inside the combobox. So typing and making a selection via the keyboard triggers the expected ‘keyup’ event to fire. However, if I start typing in the combobox, and then select the highlighted item with the mouse, the ‘select’ event doesn’t always fire. If I start typing and then use the mouse to select anything other than the highlighted item, the on(‘select’) method fires. Is this a quirk of jqxComboBox or am I doing something wrong? Will try to provide example code in a bit.


    trigonoah
    Participant

    I figured out a work around by using the on(‘close’) event to capture the specific case mentioned in my previous post, in addition to the ‘select’ and ‘keyup’ events.


    Martin
    Participant

    Hello trigonoah,

    Thank you for the update!

    Best Regards,
    Martin Yotov

    jQWidgets team
    https://www.jqwidgets.com

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.