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

Pagination: Disabled <a> element should prevent navigation and clicks #7277

Closed
1 of 2 tasks
matamatanot opened this issue Dec 18, 2024 · 1 comment
Closed
1 of 2 tasks
Labels
Not planned Issues that are not planned to be fixed or features that are not planned to be added

Comments

@matamatanot
Copy link

matamatanot commented Dec 18, 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.15.1

What package has an issue?

@mantine/core

What framework do you use?

Remix

In which browsers you can reproduce the issue?

Chrome

Describe the bug

Currently, when the a tag is in a disabled state, the data-disabled="true" attribute is correctly applied, and the cursor style is updated to reflect the disabled state. However, the link is still clickable, and navigation occurs, which is not expected behavior for a disabled element.

As per the Button documentation, it is possible to prevent such behavior by using onClick={(event) => event.preventDefault()}. Could this approach be implemented for elements in a disabled state?

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

No response

Possible fix

No response

Self-service

  • I would be willing to implement a fix for this issue
@rtivital
Copy link
Member

This is not planned to be implemented on the library side. You can do that on your side with getItemProps and getControlProps.

@rtivital rtivital closed this as not planned Won't fix, can't repro, duplicate, stale Dec 23, 2024
@rtivital rtivital added the Not planned Issues that are not planned to be fixed or features that are not planned to be added label Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Not planned Issues that are not planned to be fixed or features that are not planned to be added
Projects
None yet
Development

No branches or pull requests

2 participants