From cc75cda0e8e6e851467aa302f04dd39e89b4fa18 Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Sat, 2 Sep 2017 23:52:34 -0500 Subject: [PATCH] fix(prop): rename prop state to mutable --- packages/core/src/components/alert/alert.tsx | 2 +- packages/core/src/components/radio/radio-group.tsx | 7 +++---- packages/core/src/components/radio/radio.tsx | 8 +++----- .../core/src/components/select-option/select-option.tsx | 2 +- 4 files changed, 8 insertions(+), 11 deletions(-) diff --git a/packages/core/src/components/alert/alert.tsx b/packages/core/src/components/alert/alert.tsx index 8fdba62a92..84e435ceb3 100644 --- a/packages/core/src/components/alert/alert.tsx +++ b/packages/core/src/components/alert/alert.tsx @@ -38,7 +38,7 @@ export class Alert { @Prop() subTitle: string; @Prop() message: string; @Prop() buttons: AlertButton[] = []; - @Prop({ mutable: true}) inputs: AlertInput[] = []; + @Prop({ mutable: true }) inputs: AlertInput[] = []; @Prop() enableBackdropDismiss: boolean = true; @Prop() enterAnimation: AnimationBuilder; diff --git a/packages/core/src/components/radio/radio-group.tsx b/packages/core/src/components/radio/radio-group.tsx index ec102e8421..59627e0514 100644 --- a/packages/core/src/components/radio/radio-group.tsx +++ b/packages/core/src/components/radio/radio-group.tsx @@ -1,8 +1,7 @@ import { Component, Element, Event, EventEmitter, HostElement, Prop , State} from '@stencil/core'; - +import { isCheckedProperty } from '../../utils/helpers'; import { Radio } from './radio'; -import { isCheckedProperty } from '../../utils/helpers'; /** * @name RadioGroup @@ -80,12 +79,12 @@ export class RadioGroup { /* * @input {boolean} If true, the user cannot interact with this element. Default false. */ - @Prop({ state: true }) disabled: boolean = false; + @Prop({ mutable: true }) disabled: boolean = false; /** * @input {string} the value of the radio. */ - @Prop({ state: true }) value: string; + @Prop({ mutable: true }) value: string; ionViewWillLoad() { diff --git a/packages/core/src/components/radio/radio.tsx b/packages/core/src/components/radio/radio.tsx index 660b0b80c5..9e847ab7b3 100644 --- a/packages/core/src/components/radio/radio.tsx +++ b/packages/core/src/components/radio/radio.tsx @@ -1,8 +1,6 @@ import { Component, CssClassMap, Element, Event, EventEmitter, Listen, Prop, PropDidChange, State } from '@stencil/core'; - import { createThemedClasses } from '../../utils/theme'; -import { RadioGroup } from './radio-group'; /** * @description @@ -76,17 +74,17 @@ export class Radio { /* * @input {boolean} If true, the radio is checked. Default false. */ - @Prop({ state: true }) checked: boolean = false; + @Prop({ mutable: true }) checked: boolean = false; /* * @input {boolean} If true, the user cannot interact with this element. Default false. */ - @Prop({ state: true }) disabled: boolean = false; + @Prop({ mutable: true }) disabled: boolean = false; /** * @input {string} the value of the radio. */ - @Prop({ state: true }) value: string; + @Prop({ mutable: true }) value: string; ionViewWillLoad() { diff --git a/packages/core/src/components/select-option/select-option.tsx b/packages/core/src/components/select-option/select-option.tsx index 3d7f660cb2..db90829211 100644 --- a/packages/core/src/components/select-option/select-option.tsx +++ b/packages/core/src/components/select-option/select-option.tsx @@ -20,7 +20,7 @@ export class SelectOption { /** * @input {boolean} If true, the element is selected. */ - @Prop({state: true}) selected: boolean = false; + @Prop({ mutable: true }) selected: boolean = false; /** * @input {string} The text value of the option.