Build dropdown within a scrollable view #553
gio00
started this conversation in
4. General
Replies: 1 comment
-
|
I found a way to do it -> example: https://codesandbox.io/s/alpinejs-dropdown-in-scrollview-lxfo4 |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
I think It's very straightforward to build a dropdown and it's maybe the major use case of AlpineJS. But how would you do this task in a scrollable view… As you probably know the dropdown would be cut off and not visible outside.
As far as I know you should mount the dropdown outside the scrollable view. Are there any known ways / best practice for AlpineJS?
Little codepen as quick example. https://codepen.io/gio00/pen/yLeyGVz
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions