1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2025-03-31 14:40:11 +02:00

Fix language detection sometimes kicking in *after* posting ()

This commit is contained in:
Claire 2025-03-17 17:49:09 +01:00 committed by GitHub
parent e30001bc80
commit 30e334b51a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -378,6 +378,7 @@ export const LanguageDropdown: React.FC = () => {
if (text.length > 20) {
debouncedGuess(text, setGuess);
} else {
debouncedGuess.cancel();
setGuess('');
}
}, [text, setGuess]);