Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
On pressing escape key the entity browser modal popup does not close, While with the core media library as a widget this behaviour is working fine.
Steps to reproduce
- Enable media module
- Add a field of type media in article content type
- Install and enable entity browser module
- Add an entity browser by navigating to admin/config/content/entity_browser/add as image browser with all default settings
- Navigate to article >> form display and select entity browser as widget for the media field that you have created
- Now go to add article form and click a select entities or image a modal popup will open
- Now press escape key it won't close
Comment | File | Size | Author |
---|---|---|---|
#6 | afterFix.mov | 1.93 MB | divya.sejekan |
#5 | 3183414-4854c20620950e32562404f178f8bf9a61ebb1dd-03.patch | 1.07 KB | abhinesh |
#2 | 3183414-2.patch | 642 bytes | arshadkhan35 |
Issue fork entity_browser-3183414
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
arshadkhan35 CreditAttribution: arshadkhan35 as a volunteer commentedPatch for the same.
Comment #5
abhineshI have added the patch re-roll for version 8.x-2.10.
Comment #6
divya.sejekan CreditAttribution: divya.sejekan at QED42 for Drupal India Association commentedVerified using patch #5 . The issue is fixed and used is able to close the entity browser by esc key.
Testing steps :
- Enable media module
- Add a field of type media in article content type
- Install and enable entity browser module
- Add an entity browser by navigating to admin/config/content/entity_browser/add as image browser with all default settings
- Navigate to article >> form display and select entity browser as widget for the media field that you have created
- Now go to add article form and click a select entities or image a modal popup will open
- Now press escape key it won't close
Keeping the issue in Need review since the MR has some issues