fix: clear timers and animation frame request before component unmounts (#8700)

Co-authored-by: Sojan Jose <sojan@pepalo.com>
This commit is contained in:
Arooba Shahoor
2024-01-22 15:38:33 +09:00
committed by GitHub
parent fd4376d062
commit b3c9d1f1a5
3 changed files with 17 additions and 2 deletions

View File

@@ -84,6 +84,10 @@ export default {
},
},
beforeDestroy() {
clearTimeout(this.typingTimer);
},
methods: {
onChange(e) {
this.$emit('input', e.target.value);