EasyUI Forum

General Category => Bug Report => Topic started by: bakoma on July 05, 2014, 02:35:42 PM



Title: Bug: slider still changable after disabled
Post by: bakoma on July 05, 2014, 02:35:42 PM
For example, you have a slider:

<input id="ss" class="easyui-slider" value="25"  style="width:300px"   
        data-options="showTip:true,rule:[0,'|',25,'|',50,'|',75,'|',100]" />

Use JavaScript to disable it:
$("#ss").slider("disable");

I would expect that a user will NOT be able to change its value. It appears this is true since the slider is dimmed and you cannot drag the ball to slide to other value.

However, there is a way to change the value it is showing to user no matter whether the value behind the control is changable or not.
Since the default is 25, the sliding ball is on 25, but you can clicking on 50, then the ball moves to 50, you can do the same thing to other value such as 75. This bug mistakenly signals the user that the value is changable. This is contrary to my purpose of disabling the control unfortunately.


Title: Re: Bug: slider still changable after disabled
Post by: jarry on July 05, 2014, 05:32:35 PM
Please download the patch file from http://www.jeasyui.com/download/downloads/jquery-easyui-1.3.6-patch.zip.


Title: Re: Bug: slider still changable after disabled
Post by: bakoma on July 05, 2014, 07:26:11 PM
Please download the patch file from http://www.jeasyui.com/download/downloads/jquery-easyui-1.3.6-patch.zip.

You saved me. Thanks a lot.