Open DawnMD opened 1 year ago
same problem.
Actual problem is that all the time the popup container is not there at all in html, before and after open click.
getPopupContainer={(node): HTMLElement => { return node.parentNode; }}
e.g.
<div id="mypopup" />
without any classes attached
This helped me from https://github.com/react-component/select/issues/563:
await act(async () => { await fireEvent.mouseDown(screen.getByRole('combobox')); });
I'm trying to render a selection input where initially nothing will be selected and on the click of the input it will show all the available values.
Select
is theSelect
from the package whereasSelectOption
isOption
. When rendered via react testing library and clicked on the input, the selection list is not generated but works flawlessly in the UI