diff --git a/core/src/components/select/select.tsx b/core/src/components/select/select.tsx index 3b4ef84f26..b9495115d1 100644 --- a/core/src/components/select/select.tsx +++ b/core/src/components/select/select.tsx @@ -196,6 +196,11 @@ export class Select implements ComponentInterface { */ @Prop({ mutable: true }) value?: any | null; + /** + * If `true`, the user must fill in a value before submitting a form. + */ + @Prop() required = false; + /** * Emitted when the value has changed. * @@ -974,7 +979,7 @@ export class Select implements ComponentInterface { } private renderListbox() { - const { disabled, inputId, isExpanded } = this; + const { disabled, inputId, isExpanded, required } = this; return (