EasyUI Forum

General Category => Bug Report => Topic started by: jega on June 27, 2017, 03:03:25 AM



Title: Numberbox removes special chars
Post by: jega on June 27, 2017, 03:03:25 AM
Hi.

Having a numberbox. Typing 1234- and set focus to any other place on site, will remove the - (or . )

Think it's a bug

Jesper


Title: Re: Numberbox removes special chars
Post by: jarry on June 28, 2017, 04:54:03 PM
The negative sign can only at the first char of the number. You can override the $.fn.numberbox.defaults.filter function to custom your filter rule.


Title: Re: Numberbox removes special chars
Post by: jega on June 29, 2017, 01:56:45 PM
if i write 1234.

the . also disapear when leave the numberbox

What i want is to allow numbers and these signs , . - /

It's for a journal number

 


Title: Re: Numberbox removes special chars
Post by: jarry on June 30, 2017, 04:09:40 PM
The numberbox component only stores the number value. It denies the non-number values although you can set the 'groupSeparator' and 'decimalSeparator' properties. The numberbox component isn't suitable for storing journal number. Please try to use the textbox instead.


Title: Re: Numberbox removes special chars
Post by: jega on July 03, 2017, 12:59:10 PM
I See.

Thanks for your time


Title: Numberbox removes special chars
Post by: Kalisavek on September 12, 2017, 08:04:15 AM
Thanks for the report Ive added this to our bug tracker.