Select Event Not Raised When Select Method is Executed

2 posts, 0 answers
  1. Nick
    Nick avatar
    5 posts
    Member since:
    May 2012

    Posted 25 Jul 2012 Link to this post

    As is modeled in this jsfiddle, when one selects an item via the mouse, the event is raised.  My question is, why isn't the event raised when the user clicks on the button?

    Is this a bug?  In the docs it clearly states that the select event is "triggered when an item of a PanelBar is selected."
  2. Frank
    Frank avatar
    2 posts
    Member since:
    Feb 2012

    Posted 03 Aug 2012 Link to this post

    Hi Nick,

    I have noticed the same behaviour. It could probably be fixed by adding a eventTrigger() call in the source of the select method, but in case you do not have access to the full source you could solve it by faking a click event (which will both select and expand it). That's how I have solved it for now.

    $("#panelbar li:last > span").trigger("click");

    Hope this helps anybody running into the same problem.
Back to Top