laravel / nova-issues

554 stars 34 forks source link

Enter Key Redirects Cursor to Markdown Field Instead of Submitting Form #6538

Closed meyer59 closed 1 month ago

meyer59 commented 1 month ago

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:

  1. 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.

  2. Create a resource with multiple fields: In the form, include an input field (like a Text field) and a Markdown field.

  3. Navigate to the resource creation or edit page: Go to the page where the form with the Markdown field is displayed.

  4. Fill out the input field: Start typing into the text input field (or any other field that precedes the Markdown field).

  5. Press the Enter key: After entering text in the input field, press the "Enter" key as if you are trying to submit the form.

  6. 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.

github-actions[bot] commented 1 month ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.