Fix language detection sometimes kicking in *after* posting (#34193)
parent
e30001bc80
commit
30e334b51a
|
@ -378,6 +378,7 @@ export const LanguageDropdown: React.FC = () => {
|
||||||
if (text.length > 20) {
|
if (text.length > 20) {
|
||||||
debouncedGuess(text, setGuess);
|
debouncedGuess(text, setGuess);
|
||||||
} else {
|
} else {
|
||||||
|
debouncedGuess.cancel();
|
||||||
setGuess('');
|
setGuess('');
|
||||||
}
|
}
|
||||||
}, [text, setGuess]);
|
}, [text, setGuess]);
|
||||||
|
|
Loading…
Reference in New Issue