Possible enhancement - disable submit on search field #3321
JupiterJones
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
(Moved from issue#3184)
If the elFinder component falls within a form, searching for files using the elFinder search box will submit the form if the user presses enter.
To prevent this you can hack the search field to prevent the form submitting when the user searches for files:
$(".elfinder-button-search input").keypress(function(){if(event.which=="13"){event.preventDefault()}})
Maybe this should be the default behaviour, or an option.
Beta Was this translation helpful? Give feedback.
All reactions