Skip to content

Feat/search submit - #693

Open
2xburnt wants to merge 2 commits into
ping-pub:masterfrom
burnt-labs:feat/search-submit
Open

Feat/search submit#693
2xburnt wants to merge 2 commits into
ping-pub:masterfrom
burnt-labs:feat/search-submit

Conversation

@2xburnt

@2xburnt 2xburnt commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

This pull request refactors the search modal in NavbarSearch.vue to improve accessibility and user experience, and to ensure proper form handling. The main changes include replacing the modal container with a form, improving event handling, and enhancing the search input usability.

Form Handling and Event Management

  • Changed the modal content container from a div to a form element and updated the confirm button to use type="submit", allowing the search to be triggered by both button click and pressing Enter. The form submission is now handled by the confirm method, and the @click handler was updated to @submit.prevent="confirm". [1] [2]
  • Replaced the preventClick function with a new stopClick function that uses event.stopPropagation() for better event management within the modal.

Input Usability Improvements

  • Added a selectValue function and attached it to the search input's @focus and @click events, so the input value is automatically selected when the field is clicked or focused, making it easier for users to replace the existing query. [1] [2]

2xburnt and others added 2 commits July 27, 2026 19:33
Allow search dialogs to submit with Enter and select existing input values for quick replacement.

Co-authored-by: Cursor <cursoragent@cursor.com>
Stop modal click propagation without cancelling the browser's form-submit default action.

Co-authored-by: Cursor <cursoragent@cursor.com>
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

Successfully merging this pull request may close these issues.

1 participant