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 prop to disable datatable filter cell popover useClickOutside #687

Open
wants to merge 1 commit into
base: next
Choose a base branch
from

Conversation

jadamita
Copy link

@jadamita jadamita commented Jan 6, 2025

Reason:
The fix for #659 has broken filter popovers for applications that use the datatable inside the shadow DOM with webcomponents.

This is because the useClickOutside hook doesn't get the events propagated from the shadow DOM. This makes it so when we click any part of a control inside the popover, it will close the popover.

Suggested Fix:
I just added a prop that lets us disable this behavior. Some other ideas were to let the user pass in a custom Popover component for complete control.

What do you think?

@icflorescu

Copy link

codesandbox bot commented Jan 6, 2025

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@ers-jporche
Copy link

Also impacted by this as we are using webcomponents.

@jadamita jadamita changed the base branch from main to next January 6, 2025 17:36
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

Successfully merging this pull request may close these issues.

2 participants