mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
Tweaks
This commit is contained in:
@@ -70,7 +70,8 @@ export class Switch {
|
||||
* ControlDirective to update the value internally.
|
||||
*/
|
||||
writeValue(value) {
|
||||
this.checked = value;
|
||||
// Convert it to a boolean
|
||||
this.checked = !!value;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user