serlo / frontend

Next.js app that serves serlo.org
https://serlo.org
Apache License 2.0
39 stars 10 forks source link

editor(blanks-exercise): adding incorrect answer using Enter doesn't work as expected #3854

Closed hejtful closed 2 months ago

hejtful commented 3 months ago

When the focus is on an existing incorrect answer and the user presses the Enter key, a new incorrect answer input appears, but it's not focused. Clicking on the new incorrect answer makes it disappear.

Expected behaviour: The newly added incorrect answer will automatically be focused.

Relevant lines:

shn-srl commented 2 months ago

Seems to be working now

Screencast from 25.06.2024 11:20:27.webm

shn-srl commented 2 months ago

Issue occurs in drag/drop mode, reopening

shn-srl commented 2 months ago

https://github.com/serlo/frontend/pull/3908