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

Add an HTMLElement prop that a Popover can bind to as an alternative to triggeredBy #1389

Open
magnus-ISU opened this issue Jul 12, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@magnus-ISU
Copy link

Summary

Constructing unique IDs for programmatically created Popovers is annoying.
Ensuring the Popover follows immediately after the item it must bind to is not always possible.
It would be nice if you could pass in a function that returns an HTMLElement, or just an HTMLElement, to the Popover instead of triggeredBy

Basic example

{each htmlelementList as element}
<Popover triggerElement={element}>
{/each}

Motivation

Constructing unique IDs for programmatically created Popovers is annoying and not always simple.

@magnus-ISU magnus-ISU added the enhancement New feature or request label Jul 12, 2024
@magnus-ISU magnus-ISU changed the title Presently a Popover can only Add an HTMLElement prop that a Popover can bind to as an alternative to triggeredBy Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant