clivebeckett / grav-plugin-admin-addon-media-metadata

This plugin is an addon for the Grav CMS Admin plugin and lets you add and edit metadata for media files
MIT License
8 stars 6 forks source link

Improve UI closing behavior #14

Closed TQxTim closed 8 months ago

TQxTim commented 4 years ago

Current behavior for Admin Addon Media Metadata v1.1.0 with Admin Panel v1.10.0-rc.14

When a user releases the mouse button outside the 'Edit metadata for media file' modal, it closes itself automatically and the added content is gone. This happens for example, if someone marks the content of a text field for copy-paste and releases the button outside the modal.

One possible solution would be, if the modal only closes on mousedown instead mouseup events outside the modal.

clivebeckett commented 4 years ago

Hi Tim,

thanks for your note. For the modal I just used a Grav core functionality – or at least I think so :) Can you try other modals and check whether it’s the same issue there? If I am right, I guess the Grav Admin Plugin should be the right place to post an issue like that.

Please let me know if you were able to find out more.

Cheers, Clive.

bitstarr commented 8 months ago

I could not reproduce the behaviour of marking and releasing outside the modal to close it. Seem like the admin native modal has improved and there was no further feedback here anyway.