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

fix(material/paginator): ignore clicks on disabled buttons #30138

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Dec 6, 2024

The changes in #29379 made the paginator interactive while they're disabled in order to improve accessibility, but as a result it also allows for the buttons to navigate while they're disabled.

These changes add internal checks to ensure that the buttons don't navigate while disabled. I've also cleaned up the logic a bit so we don't have four different places that deal with navigations.

Fixes #30124.

@crisbeto crisbeto added the target: patch This PR is targeted for the next patch release label Dec 6, 2024
@crisbeto crisbeto requested a review from a team as a code owner December 6, 2024 09:50
@crisbeto crisbeto requested review from amysorto and wagnermaciel and removed request for a team December 6, 2024 09:50
@crisbeto crisbeto requested a review from andrewseguin December 6, 2024 09:52
@crisbeto crisbeto added area: google-maps G This is is related to a Google internal issue and removed area: google-maps labels Dec 6, 2024
The changes in angular#29379 made the paginator interactive while they're disabled in order to improve accessibility, but as a result it also allows for the buttons to navigate while they're disabled.

These changes add internal checks to ensure that the buttons don't navigate while disabled. I've also cleaned up the logic a bit so we don't have four different places that deal with navigations.

Fixes angular#30124.
@crisbeto crisbeto force-pushed the 30124/paginator-disabled branch from 9c31604 to c8b69e2 Compare December 6, 2024 10:46
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Dec 9, 2024
@crisbeto crisbeto merged commit 8d3bca5 into angular:main Dec 9, 2024
19 of 22 checks passed
crisbeto added a commit that referenced this pull request Dec 9, 2024
The changes in #29379 made the paginator interactive while they're disabled in order to improve accessibility, but as a result it also allows for the buttons to navigate while they're disabled.

These changes add internal checks to ensure that the buttons don't navigate while disabled. I've also cleaned up the logic a bit so we don't have four different places that deal with navigations.

Fixes #30124.

(cherry picked from commit 8d3bca5)
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jan 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker area: material/paginator G This is is related to a Google internal issue target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug(COMPONENT): MatPaginator should not be able to move to previous or next pages if disabled
2 participants