diff --git a/loleaflet/src/control/Control.Buttons.js b/loleaflet/src/control/Control.Buttons.js index 40658f6fc..0b0822c67 100644 --- a/loleaflet/src/control/Control.Buttons.js +++ b/loleaflet/src/control/Control.Buttons.js @@ -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'); } } }