loleaflet: fix disable state toolbar item

This commit is contained in:
Henry Castro 2016-02-07 18:38:17 -04:00
parent 686a531287
commit 587dde0908

View file

@ -125,7 +125,7 @@ L.Control.Buttons = L.Control.extend({
L.DomUtil.removeClass(button.el.firstChild, 'leaflet-control-buttons-disabled');
}
else if (state === 'disabled') {
L.DomUtil.removeClass(button.el.firstChild, 'leaflet-control-buttons-disabled');
L.DomUtil.addClass(button.el.firstChild, 'leaflet-control-buttons-disabled');
}
}
}