Skip to content

Commit

Permalink
fix: handleValueChange.cancel is not a function (#625)
Browse files Browse the repository at this point in the history
* fix: handleValueChange not a function

* Move changelog to correct place

---------

Co-authored-by: Vesa Laakso <482561+valscion@users.noreply.github.com>
  • Loading branch information
life2015 and valscion authored Nov 16, 2023
1 parent 021de3d commit 4c424d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ _Note: Gaps between patch versions are faulty, broken or test releases._

## UNRELEASED

* **Bug Fix**
* fix `this.handleValueChange.cancel()` is not a function ([#611](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/625) by [@life2015](https://github.com/life2015))

## 4.10.0

* **Improvement**
Expand Down
4 changes: 2 additions & 2 deletions client/components/Search.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default class Search extends PureComponent {
}

componentWillUnmount() {
this.handleValueChange.cancel();
this.handleValueChange.clear();
}

render() {
Expand Down Expand Up @@ -79,7 +79,7 @@ export default class Search extends PureComponent {
}

clear() {
this.handleValueChange.cancel();
this.handleValueChange.clear();
this.informChange('');
this.input.value = '';
}
Expand Down

0 comments on commit 4c424d5

Please sign in to comment.