EasyUI Forum

General Category => Bug Report => Topic started by: kingor2001 on October 25, 2017, 08:18:07 AM



Title: bug in combobox in 1.5.2
Post by: kingor2001 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?


Title: Re: bug in combobox in 1.5.2
Post by: jarry 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.


Title: Re: bug in combobox in 1.5.2
Post by: kingor2001 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?)