EasyUI Forum
September 14, 2025, 06:24:47 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Bug: slider still changable after disabled  (Read 10677 times)
bakoma
Newbie
*
Posts: 13


View Profile Email
« 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.
Logged
jarry
Administrator
Hero Member
*****
Posts: 2298


View Profile Email
« Reply #1 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.
Logged
bakoma
Newbie
*
Posts: 13


View Profile Email
« Reply #2 on: July 05, 2014, 07:26:11 PM »


You saved me. Thanks a lot.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!