Skip to content

Commit

Permalink
[fix] Reset default values when DropdownList component unmounts (#2648)
Browse files Browse the repository at this point in the history
Signed-off-by: Ihor Dykhta <dikhta.igor@gmail.com>
  • Loading branch information
igorDykhta authored Sep 12, 2024
1 parent cf39ab2 commit 406b978
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/src/common/item-selector/dropdown-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ export default class DropdownList extends Component<DropdownListProps, DropdownL

componentWillUnmount() {
if (this.loadingRef.current) {
this.observer?.unobserve(this.loadingRef.current);
this.observer?.unobserve(this.loadingRef?.current);
this.page = 0;
this.prevY = 0;
}
}

Expand Down

0 comments on commit 406b978

Please sign in to comment.