[Dropdown] - `allowTab` `tabindex` value should default to `select`'s `tabindex` (if exists)
Steps to Reproduce
- Integrate Dropdown only via
/dist/components/dropdown.min.js;/dist/components/dropdown.min.css - Initialize on existing, traditional HTML
select(withoptionsetc) with an existingtabindexattribute, usingui search selectionclass 'triggers' and$('element').dropdown()
Expected
Dropdown created with tabindex value copied from existing select element's tabindex value.
Result
Dropdown created with tabindex="0"
Relevant line appears to be:
https://github.com/Semantic-Org/Semantic-UI/blob/daa2438f048e6d98a330171a83ec74c3a13e9bd1/src/definitions/modules/dropdown.js#L2266
Slapdash 'solution':
.attr('tabindex', element.attributes.tabindex.value)
No doubt for wider use requires a little more refinement. Will submit PR if/when I can :)
Please checkout my pull request : Fixed issue #7100 : [Dropdown] - allowTab tabindex value should default to select's tabindex (if exists) #7100