From ba01a1a2b8f32d198264791d233c42a129e776af Mon Sep 17 00:00:00 2001 From: Julian Dehm Date: Wed, 8 Jan 2025 15:34:05 +0100 Subject: [PATCH] fix react captcha not reacting to input in text mode --- adhocracy4/static/Captcha.jsx | 1 + changelog/_0002.md | 1 + 2 files changed, 2 insertions(+) diff --git a/adhocracy4/static/Captcha.jsx b/adhocracy4/static/Captcha.jsx index 22d5a8f67..df418e107 100644 --- a/adhocracy4/static/Captcha.jsx +++ b/adhocracy4/static/Captcha.jsx @@ -190,6 +190,7 @@ const CaptCheck = ({ apiUrl, name, onChange, refresh }) => { name="captcheck_selected_answer" aria-label="Type your answer here." autoComplete="off" + onInput={(e) => chooseAnswer(e, e.target.value, false)} /> )} diff --git a/changelog/_0002.md b/changelog/_0002.md index 4be0dce30..0bb387979 100644 --- a/changelog/_0002.md +++ b/changelog/_0002.md @@ -1,3 +1,4 @@ ### Fixed - fixed other answer input field being disabled for unregistered users +- fix Captcha text mode not reacting to input