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 selection sync on client mode update (fixes #1125) #1126

Merged
merged 3 commits into from
Mar 28, 2024

Conversation

epruesse
Copy link
Contributor

This is "minimally invasive". After the reload of the table on the client and potentially restoring selections via JS callback function, the cleanSelectedValues() function sends potentially incorrect <tbl>_xxx_selected information to R. The patch uses the functions already implemented to send row/col/cell selections made via Select extension to R. It simply triggers one update right then and there. Since the messages get merged, this effectively overwrites the false message created by cleanSelectedValues() exactly when the bug #1125 is triggered. It may not be a complete fix for other scenarios, but it is brief and has minimal chance of breaking things for other use cases.

@CLAassistant
Copy link

CLAassistant commented Feb 26, 2024

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@yihui yihui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! This sounds about right. Please add a news item to NEWS.md under v0.33 and I'll merge this PR.

@yihui yihui linked an issue Feb 27, 2024 that may be closed by this pull request
@yihui yihui merged commit 6a01574 into rstudio:main Mar 28, 2024
1 check passed
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.

#828 breaks maintaining selected columns upon re-render
3 participants