Open mvorisek opened 1 year ago
As of HTML spec, the "for" attribute on labels does only work with form inputs. As FUI dropdown (especially the non-search variant) does not have a (visible) form input this is not going to work out of the box. We would need to fetch the click event on labels to support that... 🤔
Bug Report
Steps to reproduce
the relevant source code:
When a form label is clicked the focus is normally transfered to the "connected" input. Dropdown is a little special, the data field is hidden and the input field is some other field.
Can the hidden input focus forward the focus event to the dropdown input field?
This is quite important for a component design as the label generator (which generated the
for
label's attribute) is not aware of the dropdown code, thus I would be happy if Fomantic-UI can redirect the focus with some code on Fomantic-UI Dropdown init.