Combobox in stack in popover/drawer breaks layout for a moment #6119
Unanswered
sienkiewiczkm
asked this question in
Q&A
Replies: 1 comment
-
Interestingly enough, other option to avoid this issue is to const {selectFirstOption} = combobox
useEffect(() => {
selectFirstOption()
}, [selectFirstOption, search]) if you have a search box. But that's only a workaround. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, we found a strange behaviour of comboboxes in popovers/drawers when used alongside Stack. This possibly could lead to bug report, but I am not sure if that's not some sort of user error here.
In our app, we have a list of settings in a popovers and drawers, and some of those popovers are scrollable. Our setup should be more-or-less reproduced by this demo: https://codesandbox.io/p/sandbox/wonderful-hypatia-2hm7v7
If you repeatedly click on the
InStack / !withinPortal
combobox triggers both in popover and drawer you will notice that layout jumps quite often. This doesn't happen if you comment out the:or change the DOM structure.
Any tips? Should I report a bug report issue here?
Beta Was this translation helpful? Give feedback.
All reactions