EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 23, 2024, 09:07:16 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
Bug Report
>
bug in combobox in 1.5.2
Pages: [
1
]
« previous
next »
Print
Author
Topic: bug in combobox in 1.5.2 (Read 5216 times)
kingor2001
Jr. Member
Posts: 61
bug in combobox in 1.5.2
«
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: 2264
Re: bug in combobox in 1.5.2
«
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
Re: bug in combobox in 1.5.2
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...