nova-issues
nova-issues copied to clipboard
Enter Key Redirects Cursor to Markdown Field Instead of Submitting Form
- Laravel Version: v10.48.22
- Nova Version: 4.32.6
- PHP Version: 8.2
- Database Driver & Version: Mysql 8
- Operating System and Version: WIN 10
- Browser type and version: Chrome 128
Description:
Hi, I've encountered an unusual bug. When filling out a form, I typically press "Enter" to submit it. However, if there is a Markdown field on the page, instead of submitting, the cursor jumps directly into the Markdown field and starts typing there. It seems to be only when a markdown field is in the form. here is a video showing the bug screen-capture (18).webm
Detailed steps to reproduce the issue on a fresh Nova installation:
-
Set up a fresh Nova installation: Ensure you have a standard Nova setup with basic fields, including at least one Markdown field in a resource form.
-
Create a resource with multiple fields: In the form, include an input field (like a
Text
field) and aMarkdown
field. -
Navigate to the resource creation or edit page: Go to the page where the form with the Markdown field is displayed.
-
Fill out the input field: Start typing into the text input field (or any other field that precedes the Markdown field).
-
Press the Enter key: After entering text in the input field, press the "Enter" key as if you are trying to submit the form.
-
Observe the behavior: Instead of submitting the form or moving to the next field, the cursor jumps directly into the Markdown field, and any further keystrokes start entering text in the Markdown area.