EasyUI Forum
April 18, 2024, 06:20:39 PM *
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 in combobox in 1.5.2  (Read 5073 times)
kingor2001
Jr. Member
**
Posts: 61


View Profile
« on: October 25, 2017, 08:18:07 AM »

a. I set a combobox <input class="easyui-combobox" data-options="validType:['c_numeric']"></input>
and init with data : [{
         text: 'java',
         value: 0
      },{
         text: 'perl',
         value: 1
      }]
b. The  'c_numeric' is just a custom validate rule to the combobox, such as :
$.extend($.fn.validatebox.defaults.rules, {
      c_numeric : {
      validator : function(value, param) {
         return value.match(/^[0-9]{1,}$/);
      },
      message : 'only numeric allowed.'
   }
});
c. This combobox works  error with  message('only numeric allowed.') though the value is numeric.
d. It is a bug?
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 on: October 25, 2017, 04:55:46 PM »

No problems with the code. Please look at this example http://code.reloado.com/ugonis3/edit#javascript,html,live. It works fine.
Logged
kingor2001
Jr. Member
**
Posts: 61


View Profile
« Reply #2 on: October 26, 2017, 07:16:34 AM »

This example works fine but the error message 'only numeric allowed.' still show at the combobox right position, at the same time the combobox's background-color is red(it means the validators fail?)
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!