removed scrolling on thread

This commit is contained in:
plebbitor
2023-04-24 16:35:09 +02:00
parent 661f925f07
commit 5865264923
2 changed files with 3 additions and 5 deletions
+3 -1
View File
@@ -39,6 +39,7 @@ const CaptchaModal = () => {
const handleKeyDown = (event) => {
if (event.key === "Enter") {
event.preventDefault();
submitCaptcha();
}
};
@@ -54,10 +55,11 @@ const CaptchaModal = () => {
const submitCaptcha = (callback) => {
setCaptchaResponse(responseRef.current.value);
setIsCaptchaOpen(false);
if (callback) {
callback(responseRef.current.value);
}
};
};
return (