You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Passing prop tabIndex to Dropdown should set it as an attribute on the <input> element, not the containing <div> element.
Currently the tabindex is rendered on both the <div> and the <input> element.
I've examined SUI examples and @kfuglsang is right, the searchDropdown shoud have tabIndex on input while regular Dropdown should have it on root div.
The logic below will be correct:
computeTabIndex=()=>{const{ disabled, search, tabIndex }=this.props// don't set a root node tabIndex as the search input has its own tabIndexif(search)returnundefinedif(disabled)return-1return_.isNil(tabIndex)) ? 0 : tabIndex}
Assertion that root div doesn't have tabIndex with search prop should be also added.
Steps
Passing prop tabIndex to Dropdown should set it as an attribute on the
<input>
element, not the containing<div>
element.Currently the tabindex is rendered on both the
<div>
and the<input>
element.Expected Result
Actual Result
Version
0.73.1
The text was updated successfully, but these errors were encountered: