-
-
Notifications
You must be signed in to change notification settings - Fork 333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dan chadwick paper input #326
Conversation
… used when element hasn't been touched.
… listeners upon willDestroyElement.
…1.1 to 1.0.6. The app/styles/backports/paper-input.scss file can be deleted when updated to angular material 1.0.6.
…error messages at once.
… either an array of messages or hashes containing messages.
6fb36e3
to
5b5bffa
Compare
Validation tests are missing. |
Also, I am now seeing the placeholder on top of the number input elements. I think this is a regression, unless we weren't rendering number html5 elements before. Either way, its broken. See the demo app Minimum Value and Maximum Value examples |
Regarding html5 attributes, I think we should still include them because a) they are in |
Dummy app is out-of-date WRT focusin->focus and focusout->blur. Also out-of-date wrt attr.xxx, if indeed these are removed. |
"Value should be even and equal to 4" does not work in dummy app. |
They are not removed, right? |
Ah, I see. |
Other issues:
|
Good catch. Fixed.
Isn't this what is supposed to happen?
Changed default to
We never supported those events on paper-input (cut and paste). The |
|
I'm trying to replicate AM in this respect. No tabindex is used. I think 0 would not be the case because we don't want to focus |
Check me trying to replicate that: |
How did we support that? I don't see any reference to that in our codebase: |
We "supported" cut etc by virtue of using core {{input}} which mixes in TextSuport, which supports it. See its init. |
Confused. Our tabindex is on the input element, not the container (I think ... On phone atm). Just saying that a default of 0 would be nice. We don't have to mirror AM api. Because Ember. :) |
Nevermind that. That is probably a remnant of old browser support we needed back then.
|
Try Firefox, although it could be a FireFox / Windows thing. Enter a non-numeric value in a number field. Try the same in the Angular demo. The angular demo keeps the placeholder shrunken and elevated, even with Looking at this, it's a mess. The |
I've fixed the focusing logic.
Also removed noFloat. It doesn't do what we expected it to from what I've read from the angular material source. So I opted out that feature.
The only thing missing is to make this a one-way input. Let's discuss this.