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

Clear selections after batch edit #9798

Merged
merged 4 commits into from Dec 1, 2021
Merged

Clear selections after batch edit #9798

merged 4 commits into from Dec 1, 2021

Conversation

azrikahar
Copy link
Contributor

Context

Ref #9791, saving after a batch edit doesn't clear the previous selections. This is more of an issue when there's a filter, which will cause future batch edits to still include the ones that are filtered out already.

Xb2TMbeKa4.mp4

Fix applied

  • Add selection clear to refresh()
  • removed selection clears in delete and archive as its done in refresh() now

Did thought of clearing selections by removing only ones that does not exist anymore in current items, but selections on page 2 for example will not be cleared in this case. Downside of current solution will indeed impact users that does batch edits consecutively on the same selections, but the number of users with this specific use case should be not that many...

@sjugraj
Copy link

sjugraj commented Nov 15, 2021

If Auto Refresh is Enabled like every 10 Sec.
Shouldn't this clear that selection also if we do the clear on refresh call?

We should only clear when the save is submitted or the change is discarded.

@azrikahar
Copy link
Contributor Author

We should only clear when the save is submitted or the change is discarded.

Ah good one! Will update it to prevent that from happening.

@rijkvanzanten rijkvanzanten added this to the v9-next milestone Dec 1, 2021
@rijkvanzanten rijkvanzanten merged commit a79345a into main Dec 1, 2021
@rijkvanzanten rijkvanzanten deleted the discussion/9791 branch December 1, 2021 20:49
rijkvanzanten pushed a commit that referenced this pull request Dec 1, 2021
* Clear selections after batch edit

* remove redundant selection clears

* only refresh after batch saving

* use clearer function name
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants