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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not select disabled items when select-all checkbox in List is clicked #5000

Merged
merged 2 commits into from Jan 28, 2020

Conversation

niklasnatter
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Related issues/PRs Builds upon #4992
License MIT

What's in this PR?

This PR adjusts the behaviour of the List container to only select non-disabled items if theonAllSelectionChange callback is fired by a ListAdapter (for example when the select-all checkbox of the TableAdapter is clicked).

Furthermore, this PR fixes a bug that rendered the select-all checkbox of the TableAdapter with the wrong skin. Also, the select-all checkbox of the TableAdapter is now rendered as checked if all non-disabled rows are selected.

Why?

Because the goal of disabling items is that they cannot get selected.. 馃槈

@niklasnatter niklasnatter force-pushed the feature/select-all-disabled branch 2 times, most recently from 2b9b49f to d93ab9d Compare January 22, 2020 13:48
@danrot danrot merged commit 76b95a4 into sulu:release/2.0 Jan 28, 2020
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.

None yet

2 participants