HTML Select change event fires on scroll bar click in Chrome when select tag has a size attribute HTML Select change event fires on scroll bar click in Chrome when select tag has a size attribute google-chrome google-chrome

HTML Select change event fires on scroll bar click in Chrome when select tag has a size attribute


On my Chromium install it doesn't happen. I'm pretty sure this is a bug though and shouldn't be expected. You could make a workaround pretty easy though:

$(function () {    var lastVal;    $('#selecttest').change(function () {        var v = $(this).val();        if (v != lastVal) {            fireYourRealOnChangeEventHere();            lastVal = v;        }    });});