Skip to content

dropdown placement wrong after fetch #931

Answered by interose
interose asked this question in Q&A
Discussion options

You must be logged in to vote

I probably found the cause of the problem while debugging. I'm using a multi-level dropdown. However, the li elements have the following classes: flex items-center. While debugging the JS code, I noticed that the length of the reference element was not correct, and I also saw that the li element did not have the full width of the parent ul element.

Here you see the wrong positioning after the turbo frame was rerendered

And this is the positioning while debugging the concated popper code.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by interose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant