Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

SC.Validator.Number with decimal places > 0 blocks typing #616

Open
JasperTouwen opened this Issue · 0 comments

1 participant

@JasperTouwen

When using the number validator with decimal places, no keystrokes are accepted. Fixed with: index to the last else statement.

validateKeyDown: function(form, field, charStr) {
      .......
      else return text.match(/^[\-{0,1}]?[0-9,\0]*\.?[0-9\0]+/)===text;
    }
  }

to 


validateKeyDown: function(form, field, charStr) {
      .......
      else return text.match(/^[\-{0,1}]?[0-9,\0]*\.?[0-9\0]+/)[0]===text;
    }
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.