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

Merged
merged 7 commits into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions panel/widgets/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
hoxbro marked this conversation as resolved.
Show resolved Hide resolved
if self.pagination == 'remote':
self.selection = []

def _update_selected(self, *events: param.parameterized.Event, indices=None):
kwargs = {}
if self.pagination == 'remote' and self.value is not None:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def run(self):
'jupyter_bokeh >=3.0.7',
'django <4',
'channels',
'pyvista',
'pyvista <0.43', # Breaks an example
hoxbro marked this conversation as resolved.
Show resolved Hide resolved
'ipywidgets',
'ipywidgets_bokeh',
'ipyvolume',
Expand Down
Loading