docs(select-option): clarify that disabled does not apply for action sheets (#21584)

resolves https://github.com/ionic-team/ionic/issues/21578
This commit is contained in:
Liam DeBeasi
2020-06-19 13:45:49 -04:00
committed by GitHub
parent 04ce642369
commit fbcd3f8c08
3 changed files with 7 additions and 7 deletions

View File

@ -2124,7 +2124,7 @@ export namespace Components {
}
interface IonSelectOption {
/**
* If `true`, the user cannot interact with the select option.
* If `true`, the user cannot interact with the select option. This property does not apply when `interface="action-sheet"` as `ion-action-sheet` does not allow for disabled buttons.
*/
"disabled": boolean;
/**
@ -5421,7 +5421,7 @@ declare namespace LocalJSX {
}
interface IonSelectOption {
/**
* If `true`, the user cannot interact with the select option.
* If `true`, the user cannot interact with the select option. This property does not apply when `interface="action-sheet"` as `ion-action-sheet` does not allow for disabled buttons.
*/
"disabled"?: boolean;
/**

View File

@ -654,10 +654,10 @@ To customize an individual option, set a class on the `ion-select-option`:
## Properties
| Property | Attribute | Description | Type | Default |
| ---------- | ---------- | ----------------------------------------------------------- | --------- | ----------- |
| `disabled` | `disabled` | If `true`, the user cannot interact with the select option. | `boolean` | `false` |
| `value` | `value` | The text value of the option. | `any` | `undefined` |
| Property | Attribute | Description | Type | Default |
| ---------- | ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- | ----------- |
| `disabled` | `disabled` | If `true`, the user cannot interact with the select option. This property does not apply when `interface="action-sheet"` as `ion-action-sheet` does not allow for disabled buttons. | `boolean` | `false` |
| `value` | `value` | The text value of the option. | `any` | `undefined` |
----------------------------------------------

View File

@ -14,7 +14,7 @@ export class SelectOption implements ComponentInterface {
@Element() el!: HTMLElement;
/**
* If `true`, the user cannot interact with the select option.
* If `true`, the user cannot interact with the select option. This property does not apply when `interface="action-sheet"` as `ion-action-sheet` does not allow for disabled buttons.
*/
@Prop() disabled = false;