-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
fix(input): ensure that property bindings work #2431
Conversation
Please also look at #2363 as I think it's the same issue, but targeting the |
@arciisine I looked into the |
Thanks @devversion. No worries, just wanted to make sure it wasn't overlooked if it fell into the same bucket. |
/** Determines if the component host is a textarea. If not recognizable it returns false. */ | ||
private _isTextarea() { | ||
let nativeElement = this._elementRef.nativeElement; | ||
return nativeElement ? nativeElement.nodeName === 'textarea' : 'input'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/'input'/false
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! - and lol 😄 The new way of reviewing
@devversion Can you rebase real quick? |
* Developers are currently not able to use property bindings for `required`, `disabled`, `type` and `placeholder`. * This commit ensures that the Angular input setters are in sync with the native input element. * Adds test to ensure that the property bindings work for the native input element (and not for the component instance as before) Fixes angular#2428
ca8040b
to
e4c9c51
Compare
@kara Done. Waiting for one saucelabs task to finish. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
required
,disabled
,type
andplaceholder
.cc. @mmalerba
Fixes #2428