Skip to content

Commit d1bc696

Browse files
feat(select): change required prop description
1 parent e31e5fd commit d1bc696

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

core/src/components.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2809,7 +2809,7 @@ export namespace Components {
28092809
*/
28102810
"placeholder"?: string;
28112811
/**
2812-
* If `true`, the user must fill in a value before submitting a form.
2812+
* If true, screen readers will announce it as a required field. This property works only for accessibility purposes, it will not prevent the form from submitting if the value is invalid.
28132813
*/
28142814
"required": boolean;
28152815
/**
@@ -7645,7 +7645,7 @@ declare namespace LocalJSX {
76457645
*/
76467646
"placeholder"?: string;
76477647
/**
7648-
* If `true`, the user must fill in a value before submitting a form.
7648+
* If true, screen readers will announce it as a required field. This property works only for accessibility purposes, it will not prevent the form from submitting if the value is invalid.
76497649
*/
76507650
"required"?: boolean;
76517651
/**

core/src/components/select/select.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,9 @@ export class Select implements ComponentInterface {
197197
@Prop({ mutable: true }) value?: any | null;
198198

199199
/**
200-
* If `true`, the user must fill in a value before submitting a form.
200+
* If true, screen readers will announce it as a required field. This property
201+
* works only for accessibility purposes, it will not prevent the form from
202+
* submitting if the value is invalid.
201203
*/
202204
@Prop() required = false;
203205

0 commit comments

Comments
 (0)