EasyUI Forum
November 24, 2017, 02:01:07 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: Numberbox removes special chars  (Read 771 times)
jega
Newbie
*
Posts: 45


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


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


View Profile
« Reply #2 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

 
Logged
jarry
Administrator
Hero Member
*****
Posts: 1237


View Profile Email
« Reply #3 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.
Logged
jega
Newbie
*
Posts: 45


View Profile
« Reply #4 on: July 03, 2017, 12:59:10 PM »

I See.

Thanks for your time
Logged
Kalisavek
Newbie
*
Posts: 2

241565157 Kalisavek Kalisavek
View Profile WWW
« Reply #5 on: September 12, 2017, 08:04:15 AM »

Thanks for the report Ive added this to our bug tracker.
Logged

Men's power -  I recommend
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!