Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
meyer59 opened this issue Sep 24, 2024 · 0 comments
Open

Comments

@meyer59
Copy link

meyer59 commented Sep 24, 2024

  • 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:

  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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant