Skip to content

Commit

Permalink
Fix file select sometimes not working properly on thumbnail view mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Arkounay committed Jan 7, 2022
1 parent 22d02be commit a5fe475
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Resources/assets/dist/media_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ var _default = /*#__PURE__*/function (_Controller) {
iframeContent.addEventListener('click', function (e) {
for (var target = e.target; target && target !== this; target = target.parentNode) {
if (target.matches('.select')) {
self.pathValue = e.target.dataset.path;
self.pathValue = target.dataset.path;
self.fileManagerModalTarget.querySelector('.modal-footer button').click();
break;
}
Expand Down
2 changes: 1 addition & 1 deletion Resources/assets/src/media_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export default class extends Controller {
iframeContent.addEventListener('click', function(e) {
for (let target = e.target; target && target !== this; target = target.parentNode) {
if (target.matches('.select')) {
self.pathValue = e.target.dataset.path;
self.pathValue = target.dataset.path;
self.fileManagerModalTarget.querySelector('.modal-footer button').click();
break;
}
Expand Down

0 comments on commit a5fe475

Please sign in to comment.