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
it(
'should be possible to link Input/Button and Label if Label is rendered last',
suppressConsoleLogs(async () => {
render(
<Combobox value="Test" onChange={console.log}>
<Combobox.Input onChange={NOOP} />
<Combobox.Button />
<Combobox.Label>Label</Combobox.Label>
</Combobox>
)
assertComboboxLabelLinkedWithCombobox()
assertComboboxButtonLinkedWithComboboxLabel()
})
)
Describe your issue
labelRef does not seem to get updated on Input and Button if the Label is rendered last. This results in missing aria-labelledby attributes. Same as reported in #1352, but it is also failing in React.
The issue is fixing itself when re-rendering the component.
The text was updated successfully, but these errors were encountered:
What package within Headless UI are you using?
@headlessui/react
What version of that package are you using?
v1.7.0
What browser are you using?
Chrome, Jest
Reproduction URL
Minimal failing test-case:
Describe your issue
labelRef does not seem to get updated on Input and Button if the Label is rendered last. This results in missing aria-labelledby attributes. Same as reported in #1352, but it is also failing in React.
The issue is fixing itself when re-rendering the component.
The text was updated successfully, but these errors were encountered: