mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
removed scrolling on thread
This commit is contained in:
@@ -39,6 +39,7 @@ const CaptchaModal = () => {
|
|||||||
|
|
||||||
const handleKeyDown = (event) => {
|
const handleKeyDown = (event) => {
|
||||||
if (event.key === "Enter") {
|
if (event.key === "Enter") {
|
||||||
|
event.preventDefault();
|
||||||
submitCaptcha();
|
submitCaptcha();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -54,10 +55,11 @@ const CaptchaModal = () => {
|
|||||||
const submitCaptcha = (callback) => {
|
const submitCaptcha = (callback) => {
|
||||||
setCaptchaResponse(responseRef.current.value);
|
setCaptchaResponse(responseRef.current.value);
|
||||||
setIsCaptchaOpen(false);
|
setIsCaptchaOpen(false);
|
||||||
|
|
||||||
if (callback) {
|
if (callback) {
|
||||||
callback(responseRef.current.value);
|
callback(responseRef.current.value);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -153,10 +153,6 @@ const Thread = () => {
|
|||||||
const handleSubmit = async (event) => {
|
const handleSubmit = async (event) => {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
||||||
setTimeout(() => {
|
|
||||||
window.scrollTo(0, document.body.scrollHeight);
|
|
||||||
}, 100)
|
|
||||||
|
|
||||||
setPublishCommentOptions((prevPublishCommentOptions) => ({
|
setPublishCommentOptions((prevPublishCommentOptions) => ({
|
||||||
...prevPublishCommentOptions,
|
...prevPublishCommentOptions,
|
||||||
author: {
|
author: {
|
||||||
|
|||||||
Reference in New Issue
Block a user