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

docs: Set Nested popovers for Select to display correctly inside the Filter #655

Merged
merged 2 commits into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export function SearchingAndFilteringExample() {
placeholder="Search departments…"
onChange={setSelectedDepartments}
leftSection={<IconSearch size={16} />}
comboboxProps={{ withinPortal: false }}
clearable
searchable
/>
Expand Down
7 changes: 7 additions & 0 deletions app/examples/searching-and-filtering/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Code } from '@mantine/core';
import type { Route } from 'next';
import { PRODUCT_NAME } from '~/app/config';
import { CodeBlock } from '~/components/CodeBlock';
import { ExternalLink } from '~/components/ExternalLink';
import { InternalLink } from '~/components/InternalLink';
import { PageNavigation } from '~/components/PageNavigation';
import { PageTitle } from '~/components/PageTitle';
Expand Down Expand Up @@ -32,6 +33,12 @@ export default async function SearchingAndFilteringExamplePage() {
<SearchingAndFilteringExample />
<Txt>The code for this example is as follows:</Txt>
<CodeBlock code={code} />
<Txt idea>
To use the Mantine Component with a popover inside the filter column property, you need to render the child
properties without using a Portal. Please refer to the Mantine documentation on{' '}
<ExternalLink to="https://mantine.dev/core/popover/#nested-popovers">Nested Popovers</ExternalLink> for more
details.
</Txt>
<Txt info title="Why no built-in “Excel-like” searching and filtering support?">
You’ll often have to implement searching and filtering data in your projects.
<br />
Expand Down