refactor(): remove checked property in favor of parent value (#19449)

BREAKING CHANGE:


The following components have been updated to remove the checked or selected properties:

- Radio
- Segment Button
- Select

Developers should set the value property on the respective parent components in order to managed checked/selected status.

Co-authored-by: Liam DeBeasi <liamdebeasi@users.noreply.github.com>
This commit is contained in:
Manu MA
2020-01-17 23:22:26 +01:00
committed by Liam DeBeasi
parent 9232f16eea
commit a5229d90ca
52 changed files with 872 additions and 932 deletions

View File

@ -11,7 +11,6 @@ SelectOption is a component that is a child element of Select. For more informat
| Property | Attribute | Description | Type | Default |
| ---------- | ---------- | ----------------------------------------------------------- | --------- | ----------- |
| `disabled` | `disabled` | If `true`, the user cannot interact with the select option. | `boolean` | `false` |
| `selected` | `selected` | If `true`, the element is selected. | `boolean` | `false` |
| `value` | `value` | The text value of the option. | `any` | `undefined` |

View File

@ -18,11 +18,6 @@ export class SelectOption implements ComponentInterface {
*/
@Prop() disabled = false;
/**
* If `true`, the element is selected.
*/
@Prop() selected = false;
/**
* The text value of the option.
*/