-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
refactor(all): consistent inputs #10898
Conversation
71ce2f5
to
98e9d24
Compare
7b38b1a
to
3d569eb
Compare
@@ -58,13 +58,13 @@ export class PageOne { | |||
buttons: [ | |||
{ | |||
text: 'Cancel', | |||
handler: (data: any) => { | |||
handler: (data) => { |
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.
This is not longer needed, because I added proper types in AlertButton
'<div class="checkbox-inner"></div>' + | ||
'</div>' + | ||
'<button role="checkbox" ' + | ||
'type="button" ' + | ||
'ion-button="item-cover" ' + | ||
'[id]="id" ' + | ||
'[attr.aria-checked]="_checked" ' + | ||
'[attr.aria-checked]="_value" ' + |
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.
is _checked is not longer the source of trust, but _value from BaseInput
*/ | ||
writeValue(val: any) { | ||
this._setChecked(isTrueProperty(val)); | ||
this.value = val; |
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.
back-compatible property
} | ||
|
||
if (isTrueProperty(this._disabled)) { | ||
button._setElementClass('segment-button-disabled', this._disabled); |
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.
this was not properly refactored
fixes #8578