1
0
mirror of synced 2024-11-22 21:16:10 +03:00

after triggering change also trigger click to help some validation frameworks. closes #259. closes #262.

This commit is contained in:
Igor Vaynberg 2012-07-25 08:09:52 +03:00
parent b3089218dc
commit 3e42cae401

View File

@ -714,6 +714,10 @@
this.opts.element.data("select2-change-triggered", true);
this.opts.element.trigger(details);
this.opts.element.data("select2-change-triggered", false);
// some validation frameworks ignore the change event and listen instead to keyup, click for selects
// so here we trigger the click event manually
this.opts.element.click();
},