Skip to content

Add onDismiss handler to handle Escape button click#796

Open
DavidTanner wants to merge 1 commit intoicflorescu:nextfrom
DavidTanner:filterEscapePress
Open

Add onDismiss handler to handle Escape button click#796
DavidTanner wants to merge 1 commit intoicflorescu:nextfrom
DavidTanner:filterEscapePress

Conversation

@DavidTanner
Copy link
Copy Markdown

This pull request adds support for the onDismiss parameter on the Mantine Popover used within DataTableHeaderCellFilter in mantine-datatable.

Currently, the DataTableHeaderCellFilter component creates an internal Popover but does not pass the close handler to the Popover component. As a result, consumers of mantine-datatable cannot react when the filter popover is dismissed from an escape event.

This PR forwards the close callback to the underlying Popover onDismiss handler, allowing the filter to respond to popover dismissal events.

@codesandbox
Copy link
Copy Markdown

codesandbox bot commented Mar 12, 2026

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

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.

1 participant