Skip to content
This repository has been archived by the owner on May 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #398 from Groww/develop
Browse files Browse the repository at this point in the history
Release UI-Tollkit v0.5.5
  • Loading branch information
AkshayNaikGroww authored Feb 1, 2024
2 parents 9c072ff + 843b48e commit 24eef42
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/ui-toolkit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@groww-tech/ui-toolkit",
"version": "0.5.4",
"version": "0.5.5",
"description": "A lightning nature UI",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Dropdown extends React.PureComponent<Props, State> {
componentWillUnmount() {
document.removeEventListener('click', this._onWindowClick);
document.removeEventListener('touchstart', this._onWindowClick);
document.removeEventListener('keyup', this._onKeyDownHandler);
document.removeEventListener('keydown', this._onKeyDownHandler);
}


Expand Down
7 changes: 7 additions & 0 deletions packages/ui-toolkit/src/components/atoms/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ class Select extends React.PureComponent<Props> {
}


componentWillUnmount() {
this.optionsRefArr.forEach((ref: any) => (ref.current = null));
this.optionsRefArr = [];
this.selectDropdownRef = null;
}


render() {
const { data: options } = this.props;

Expand Down

0 comments on commit 24eef42

Please sign in to comment.