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 selection if value change from pagination=remote #6008

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

hoxbro
Copy link
Member

@hoxbro hoxbro commented Dec 7, 2023

If the value of the Tabulator changes, we can no longer trust the selection; therefore, we clear it.

@hoxbro hoxbro added type: bug Something isn't correct or isn't working component: tabulator Related to the Tabulator widget labels Dec 7, 2023
Copy link

codecov bot commented Dec 7, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (ae9cee8) 84.45% compared to head (e6138c5) 84.67%.
Report is 13 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6008      +/-   ##
==========================================
+ Coverage   84.45%   84.67%   +0.22%     
==========================================
  Files         291      291              
  Lines       43544    43820     +276     
==========================================
+ Hits        36774    37105     +331     
+ Misses       6770     6715      -55     
Flag Coverage Δ
ui-tests 40.65% <100.00%> (-0.11%) ⬇️
unitexamples-tests 72.86% <100.00%> (+0.32%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hoxbro hoxbro marked this pull request as draft December 7, 2023 12:59
setup.py Outdated Show resolved Hide resolved
@@ -1562,6 +1562,11 @@ def _update_max_page(self):
for ref, (model, _) in self._models.items():
self._apply_update([], {'max_page': max_page}, model, ref)

@param.depends("value", watch=True)
def _clear_selection_remote_pagination(self):
Copy link
Member

Choose a reason for hiding this comment

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

Think this may have to be a watcher that checks if event.new is not event.old.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: tabulator Related to the Tabulator widget type: bug Something isn't correct or isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants