Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

md-text-float type="number", bug on entering string data. #993

Closed
SanjayAlanoly opened this issue Dec 19, 2014 · 5 comments
Closed

md-text-float type="number", bug on entering string data. #993

SanjayAlanoly opened this issue Dec 19, 2014 · 5 comments
Milestone

Comments

@SanjayAlanoly
Copy link

The text field md-text-float when set to type="number" renders wrongly when string data is entered and the focus changes as shown below :

image

image

However it works correctly when number data is entered.

image

@brutto
Copy link

brutto commented Dec 19, 2014

This seen at type="date" too. As i suppose it appear in all non ordinary
input types.

On 19 December 2014 at 14:14, Sanjay Thomas Alanoly <
notifications@github.com> wrote:

The text field md-text-float when set to type="number" renders wrongly
when string data is entered and the focus changes as shown below :

[image: image]
https://cloud.githubusercontent.com/assets/1556040/5503521/e75f49c8-879d-11e4-9cb4-1640c5cd2ba1.png

[image: image]
https://cloud.githubusercontent.com/assets/1556040/5503530/ff2a152e-879d-11e4-9475-a1f461fc8604.png

However it works correctly when number data is entered.

[image: image]
https://cloud.githubusercontent.com/assets/1556040/5503536/1519f8a4-879e-11e4-8244-1c89d6ff088b.png


Reply to this email directly or view it on GitHub
#993.

@PaulMougel
Copy link
Contributor

Related: #547.

@epelc
Copy link
Contributor

epelc commented Dec 19, 2014

Also note if you use it with a form it will correctly tell you that it must be a number when you submit it.

@MJDSys
Copy link

MJDSys commented Jan 13, 2015

I don't think this issue can be closed, as I still experience this issue while using the new md-input-container. See here: http://jsfiddle.net/L4eto7up/ . I tried both on Chrome 39 and Firefox 34.0.5.

@ajoslin ajoslin reopened this Jan 13, 2015
@ajoslin
Copy link
Contributor

ajoslin commented Jan 13, 2015

Need to make it '!element.val().length && !ngModel.$isEmpty()'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants