fix(select): ensure popover options with number values are searched for correctly (#23998)

This commit is contained in:
Amanda Smith
2021-10-04 11:19:49 -05:00
committed by GitHub
parent 0ef4d68413
commit c20408369b
8 changed files with 35 additions and 19 deletions

View File

@ -60,7 +60,7 @@ export class Checkbox implements ComponentInterface {
* The value of a checkbox is analogous to the value of an `<input type="checkbox">`,
* it's only used when the checkbox participates in a native `<form>`.
*/
@Prop() value = 'on';
@Prop() value: any | null = 'on';
/**
* Emitted when the checked property has changed.

View File

@ -286,7 +286,7 @@ export default defineComponent({
| `indeterminate` | `indeterminate` | If `true`, the checkbox will visually appear as indeterminate. | `boolean` | `false` |
| `mode` | `mode` | The mode determines which platform styles to use. | `"ios" \| "md"` | `undefined` |
| `name` | `name` | The name of the control, which is submitted with the form data. | `string` | `this.inputId` |
| `value` | `value` | The value of the checkbox does not mean if it's checked or not, use the `checked` property for that. The value of a checkbox is analogous to the value of an `<input type="checkbox">`, it's only used when the checkbox participates in a native `<form>`. | `string` | `'on'` |
| `value` | `value` | The value of the checkbox does not mean if it's checked or not, use the `checked` property for that. The value of a checkbox is analogous to the value of an `<input type="checkbox">`, it's only used when the checkbox participates in a native `<form>`. | `any` | `'on'` |
## Events