We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 733f19e commit 06c82f2Copy full SHA for 06c82f2
1 file changed
select2.js
@@ -661,6 +661,10 @@ the specific language governing permissions and limitations under the Apache Lic
661
installDebouncedScroll(80, this.results);
662
this.dropdown.delegate(resultsSelector, "scroll-debounced", this.bind(this.loadMoreIfNeeded));
663
664
+ // do not propagate change event from the search field out of the component
665
+ $(this.container).delegate(".select2-input", "change", function(e) {e.stopPropagation();});
666
+ $(this.dropdown).delegate(".select2-input", "change", function(e) {e.stopPropagation();});
667
+
668
// if jquery.mousewheel plugin is installed we can prevent out-of-bounds scrolling of results via mousewheel
669
if ($.fn.mousewheel) {
670
results.mousewheel(function (e, delta, deltaX, deltaY) {
0 commit comments