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) => {
141141 </ div >
142142 < div className = 'full-width' >
143143 < InputSelect
144- tabIndex = { 1 }
144+ tabIndex = { 0 }
145145 options = { industryOptions }
146146 value = { workInfo . industry }
147147 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) => {
7878 hideInlineErrors = { props . hideInlineErrors }
7979 ref = { triggerRef }
8080 >
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+ >
8288 < span className = 'body-small' > { selectedOption ? label ( selectedOption ) : '' } </ span >
8389 < span className = 'body-small' > { ! selectedOption && ! ! props . placeholder ? props . placeholder : '' } </ span >
8490 < span className = { styles [ 'selected-icon' ] } >
8591 < IconOutline . ChevronDownIcon />
8692 </ span >
87- </ div >
93+ </ button >
8894
8995 < div className = { styles [ 'menu-wrap' ] } >
9096 { menuIsVisible && (
You can’t perform that action at this time.
0 commit comments