Open inspector71 opened 1 year ago
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
Steps to Reproduce
/dist/components/dropdown.min.js
;/dist/components/dropdown.min.css
select
(withoptions
etc) with an existingtabindex
attribute, usingui search selection
class 'triggers' and$('element').dropdown()
Expected Dropdown created with
tabindex
value copied from existingselect
element'stabindex
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