fix: using proper input type instead of the button role

This commit is contained in:
Moyasee
2025-10-04 20:25:28 +03:00
parent 71f391c8e8
commit 8653e62dce

View File

@@ -630,19 +630,7 @@ export function GameDetailsContent() {
</span>
</div>
</div>
<div
className="game-details__review-input"
onClick={() => editor?.commands.focus()}
onKeyDown={(e) => {
if (e.key === "Enter" || e.key === " ") {
e.preventDefault();
editor?.commands.focus();
}
}}
role="button"
tabIndex={0}
aria-label="Click to focus review editor"
>
<div className="game-details__review-input">
<EditorContent editor={editor} />
</div>
</div>