From ab30a8e5d4de8d987c6db9486ed17ad2d6ab4079 Mon Sep 17 00:00:00 2001 From: "Riccardo Massera (TheCoder4Eu)" Date: Sun, 9 Apr 2017 20:42:41 +0200 Subject: [PATCH] Fix Slider2 Disabled status ( #592 ). --- .../java/net/bootsfaces/component/slider2/Slider2Renderer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/bootsfaces/component/slider2/Slider2Renderer.java b/src/main/java/net/bootsfaces/component/slider2/Slider2Renderer.java index 15b05cca9..3d9bfe93c 100644 --- a/src/main/java/net/bootsfaces/component/slider2/Slider2Renderer.java +++ b/src/main/java/net/bootsfaces/component/slider2/Slider2Renderer.java @@ -354,7 +354,7 @@ private void encodeSliderInput(Slider2 slider, ResponseWriter rw, boolean vo, in if(BsfUtils.isValued(slider.isTooltipSplit())) rw.writeAttribute("data-slider-tooltip-split", slider.isTooltipSplit(), null); if(BsfUtils.isValued(slider.getTooltipSliderPosition())) rw.writeAttribute("data-slider-tooltip-position", slider.getTooltipSliderPosition(), null); if(BsfUtils.isValued(slider.getOrientation())) rw.writeAttribute("data-slider-orientation", slider.getOrientation().startsWith("vertical") ? "vertical" : "horizontal", null); - if(BsfUtils.isValued(slider.isDisabled())) rw.writeAttribute("data-slider-enabled", !slider.isDisabled(), null); + if(slider.isDisabled()) rw.writeAttribute("data-slider-enabled", "false", null); if(BsfUtils.isValued(slider.getPrecision())) rw.writeAttribute("data-slider-precision", slider.getPrecision(), null); if(BsfUtils.isValued(slider.getScale())) rw.writeAttribute("data-slider-ticks-scale", slider.getScale(), null); if(BsfUtils.isValued(slider.isFocus())) rw.writeAttribute("data-slider-focus", slider.isFocus(), null);