Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attach to parent element #75

Open
asacarter opened this issue Mar 22, 2023 · 1 comment
Open

Attach to parent element #75

asacarter opened this issue Mar 22, 2023 · 1 comment

Comments

@asacarter
Copy link

Was the parent option to attach the picker to a parent element removed in V2?

The problem is that if it's attached to a scrollable element, the popup is positioned to window so it doesn't scroll with the scrollable element.

@taufik-nurrohman
Copy link
Owner

taufik-nurrohman commented Mar 23, 2023

Yes. See the static color picker example on how I append the picker element to a DOM:

picker.enter(document.querySelector('#container'));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants