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

Nested NavLink - collapse animation frozen #6943

Open
1 of 2 tasks
iamyoki opened this issue Oct 4, 2024 · 0 comments
Open
1 of 2 tasks

Nested NavLink - collapse animation frozen #6943

iamyoki opened this issue Oct 4, 2024 · 0 comments
Labels
Fix Unknown It is not clear whether the can be resolved

Comments

@iamyoki
Copy link

iamyoki commented Oct 4, 2024

Dependencies check up

  • I have verified that I use latest version of all @mantine/* packages

What version of @mantine/* packages do you have in package.json?

7.13.2

What package has an issue?

@mantine/core

What framework do you use?

create-react-app (CRA)

In which browsers you can reproduce the issue?

Chrome

Describe the bug

iShot_2024-10-04_23 33 50

Minimum reproduce link: https://codesandbox.io/p/sandbox/x5dnkl

Unexpected

Nested Navlink collapse animation get frozen when wrap in a flex column + overflow:auto container

Details

<MantineProvider>
  <div
    className="App"
    style={{
      height: 200,
      backgroundColor: "gainsboro",
    }}
  >
    <div
      className="navigation"
      style={{
        display: "flex",
        flexDirection: "column",
        overflow: "auto",
        height: "inherit",
      }}
    >
      <NavLink href="/" label="Posts">
        <NavLink label="All" />
        <NavLink label="Published" />
        <NavLink label="Drafts" />
        <NavLink label="Archieved" />
        <NavLink label="Deleted" />
      </NavLink>
      <NavLink href="/" label="Discussions">
        <NavLink label="All" />
        <NavLink label="Published" />
        <NavLink label="Drafts" />
        <NavLink label="Archieved" />
        <NavLink label="Deleted" />
      </NavLink>
    </div>
  </div>
</MantineProvider>

div.navigation contains all NavLinks, it scrolls inside if height exceeded. But with flex column + overflow:auto it always frozen.

If possible, include a link to a codesandbox with a minimal reproduction

https://codesandbox.io/p/sandbox/x5dnkl

Possible fix

No response

Self-service

  • I would be willing to implement a fix for this issue
@iamyoki iamyoki changed the title NavLink nested animation frozen Nested NavLink - collapse animation frozen Oct 4, 2024
@rtivital rtivital added the Fix Unknown It is not clear whether the can be resolved label Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fix Unknown It is not clear whether the can be resolved
Projects
None yet
Development

No branches or pull requests

2 participants