From 4c424d54255c860a54275e9894c0b707c0629461 Mon Sep 17 00:00:00 2001 From: RetroX <976885345@qq.com> Date: Thu, 16 Nov 2023 15:14:30 +0800 Subject: [PATCH] fix: handleValueChange.cancel is not a function (#625) * fix: handleValueChange not a function * Move changelog to correct place --------- Co-authored-by: Vesa Laakso <482561+valscion@users.noreply.github.com> --- CHANGELOG.md | 3 +++ client/components/Search.jsx | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 184e7695..bcf61101 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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** diff --git a/client/components/Search.jsx b/client/components/Search.jsx index 6c6cc1bb..941b7ea5 100644 --- a/client/components/Search.jsx +++ b/client/components/Search.jsx @@ -14,7 +14,7 @@ export default class Search extends PureComponent { } componentWillUnmount() { - this.handleValueChange.cancel(); + this.handleValueChange.clear(); } render() { @@ -79,7 +79,7 @@ export default class Search extends PureComponent { } clear() { - this.handleValueChange.cancel(); + this.handleValueChange.clear(); this.informChange(''); this.input.value = ''; }