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

Prevent Unintended Form Submission on Search Input Blur #1

Open
lucky-eagleman opened this issue Nov 5, 2024 · 0 comments
Open

Prevent Unintended Form Submission on Search Input Blur #1

lucky-eagleman opened this issue Nov 5, 2024 · 0 comments

Comments

@lucky-eagleman
Copy link

Issue:
I have implemented a search feature on the admin page using django-smartbase-admin. Currently, when I input text into the search field and then click elsewhere on the page, it triggers a form submission. I would like to modify this behavior so that the form submits only when the user either presses the Enter key or clicks the search button.

Proposed Solution:
Could you please provide guidance on how to prevent the default submit action when the search input loses focus? This will improve the user experience by ensuring that the search is executed only when intended.

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