File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
apps/onboarding/src/components/modal-add-work
libs/ui/lib/components/form/form-groups/form-input/input-select Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ const ModalAddWork: FC<ModalAddWorkProps> = (props: ModalAddWorkProps) => {
141
141
</ div >
142
142
< div className = 'full-width' >
143
143
< InputSelect
144
- tabIndex = { 1 }
144
+ tabIndex = { 0 }
145
145
options = { industryOptions }
146
146
value = { workInfo . industry }
147
147
onChange = { function onChange ( event : any ) {
Original file line number Diff line number Diff line change @@ -78,13 +78,19 @@ const InputSelect: FC<InputSelectProps> = (props: InputSelectProps) => {
78
78
hideInlineErrors = { props . hideInlineErrors }
79
79
ref = { triggerRef }
80
80
>
81
- < div className = { styles . selected } onClick = { toggleIfNotDisabled } >
81
+ < button
82
+ tabIndex = { props . tabIndex }
83
+ className = { styles . selected }
84
+ onClick = { toggleIfNotDisabled }
85
+ type = 'button'
86
+ disabled = { ! ! props . disabled }
87
+ >
82
88
< span className = 'body-small' > { selectedOption ? label ( selectedOption ) : '' } </ span >
83
89
< span className = 'body-small' > { ! selectedOption && ! ! props . placeholder ? props . placeholder : '' } </ span >
84
90
< span className = { styles [ 'selected-icon' ] } >
85
91
< IconOutline . ChevronDownIcon />
86
92
</ span >
87
- </ div >
93
+ </ button >
88
94
89
95
< div className = { styles [ 'menu-wrap' ] } >
90
96
{ menuIsVisible && (
You can’t perform that action at this time.
0 commit comments