File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
packages/ui/src/fields/Select Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ export type SelectInputProps = {
33
33
readonly options ?: OptionObject [ ]
34
34
readonly path : string
35
35
readonly readOnly ?: boolean
36
+ readonly required ?: boolean
36
37
readonly showError ?: boolean
37
38
readonly style ?: React . CSSProperties
38
39
readonly value ?: string | string [ ]
@@ -56,6 +57,7 @@ export const SelectInput: React.FC<SelectInputProps> = (props) => {
56
57
options,
57
58
path,
58
59
readOnly,
60
+ required,
59
61
showError,
60
62
style,
61
63
value,
@@ -97,7 +99,9 @@ export const SelectInput: React.FC<SelectInputProps> = (props) => {
97
99
>
98
100
< RenderCustomComponent
99
101
CustomComponent = { Label }
100
- Fallback = { < FieldLabel label = { label } localized = { localized } path = { path } required = { false } /> }
102
+ Fallback = {
103
+ < FieldLabel label = { label } localized = { localized } path = { path } required = { required } />
104
+ }
101
105
/>
102
106
< div className = { `${ fieldBaseClass } __wrap` } >
103
107
< RenderCustomComponent
Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ const SelectFieldComponent: SelectFieldClientComponent = (props) => {
117
117
options = { options }
118
118
path = { path }
119
119
readOnly = { readOnly }
120
+ required = { required }
120
121
showError = { showError }
121
122
style = { styles }
122
123
value = { value as string | string [ ] }
You can’t perform that action at this time.
0 commit comments