Closed (fixed)
Project:
Media Directories
Version:
2.1.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 May 2022 at 15:55 UTC
Updated:
19 Dec 2023 at 07:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
ytsurkI'll have a look at this.
Comment #3
ytsurkComment #4
ytsurkHere a patch disabling the submission of the entity browser form. The form also will no longer submit if, fe. the quick-edit button is active, a media item selected and then enter is pressed.
Comment #7
ytsurkBackported to 2.0.x
Comment #8
ytsurkUps - I introduced a regression here.
The patch was not well tested, Sorry.
Undoing my changes here for now.
Comment #12
rang501 commentedSo I took a look at it and the problem was with keyup event, it triggered in all keyup events.
I commited a fix that checks event itself inside keyup handler. Seems to solve the issue and adding media also works.
Comment #13
ytsurkFor me in firefox the reload does still happen when I press enter in the search field ("filter").
Comment #14
rang501 commentedI could take a look at it over the weekend if I have time.
Comment #16
rang501 commentedI found the issue - it seems that the keydown was triggering the form submission, so I added separate keydown event that will prevent enter key from submitting the form.
Works both in Chrome and Firefox.
Comment #17
ytsurkI can confirm this now works. Thanks rang501.
Comment #18
ytsurk