Skip to content

Prevent Unintended Form Submission on Search Input Blur #1

@lucky-golden-eagle

Description

@lucky-golden-eagle

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions