When Opening A <sl-dropdown>
With hoist
Set For The First Time, <sl-menu>
Is Strangely Positioned
#843
Labels
bug
Things that aren't working right in the library.
Describe the bug
When attempting to open a
<sl-dropdown>
for the first time by clicking on it when thehoist
property has been set, the corresponding<sl-menu>
is strangely positioned and the height is incorrect. Upon clicking the<sl-dropdown>
again to close it and a third time to open it again, the<sl-menu>
is correctly positioned and all subsequent openings are fine. But the first one is always messed up.To Reproduce
Steps to reproduce the behavior:
<sl-dropdown>
with thehoist
property set<sl-dropdown>
<sl-menu>
is incorrectly positionedDemo
Issue can be seen at https://codepen.io/zozman/pen/vYRpgGK?editors=1000 by clicking on the Hoisted
<sl-dropdown>
(this is a copy of the example from https://shoelace.style/components/dropdown?id=hoisting where it can also be seen).Screenshots
Browser / OS
The text was updated successfully, but these errors were encountered: