jQuery UI Widgets Forums Lists ComboBox Strange behaviour with two combo boxes

This topic contains 3 replies, has 2 voices, and was last updated by  ivailo 9 years ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Strange behaviour with two combo boxes #79026

    GregoryHouseMD
    Participant

    Here is the scenario:

    I have two cascading combo boxes and I populate them without a problem. I have two different keyUp event handlers on both of them when enter is pressed. Once I make the selection on the first combo box, the keyup event for the first combo box is caught, the second combo gets populated, and I set the focus on the second combo box.

    Now, if I start typing, autocomplete kicks in on the second combo box and I can move up and down the items, if I hit enter the proper code is run.

    Here is the strange part. Once the focus is moved to the second combo box, if I don’t type anything but go trough the items using the arrows only, the popup doesn’t open (and it shouldn’t right?) and when I get to the item I want, if I hit enter, the keyup on the first element gets fired…

    Any ideas or workarounds?

    Strange behaviour with two combo boxes #79039

    ivailo
    Participant

    Hi GregoryHouseMD,

    Please send a fiddle/jseditor link with your code for analyze.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

    Strange behaviour with two combo boxes #79053

    GregoryHouseMD
    Participant

    This is the javascript I’m using, a bit striped down, caust it has a lot of stuff going on: jsEditor

    Strange behaviour with two combo boxes #79117

    ivailo
    Participant

    Hi GregoryHouseMD,

    From this part of code is dificult to be analyzed the behavior you talk about.
    Please modify the example to be working and demonstrating the problematic behavior.
    Also you can see our cascading combo boxes demo.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.