Skip to content

Commit

Permalink
Closes #14237: Clear child selections on change to parent selection
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed Feb 8, 2024
1 parent 018815c commit 674f794
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion netbox/project-static/dist/netbox.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion netbox/project-static/dist/netbox.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions netbox/project-static/src/select/classes/dynamicTomSelect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,9 @@ export class DynamicTomSelect extends TomSelect {
this.updateQueryParams(target.name);
this.updatePathValues(target.name);

// Clear any previous selection(s) as the parent filter has changed
this.clear();

// Load new data.
this.load(this.lastValue);
}
Expand Down

0 comments on commit 674f794

Please sign in to comment.