Skip to content

Commit d06f83a

Browse files
committed
Better parent click finding, fixes bugs when clicking directly on words
1 parent 77198b4 commit d06f83a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/views/server/js/filemanager/contextmenu.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class ContextMenuClass {
4646
rightClick() {
4747
$('#file_listing > tbody td').on('contextmenu', event => {
4848

49-
const parent = $(event.target).parent();
49+
const parent = $(event.target).closest('tr');
5050
const menu = $(this.makeMenu());
5151

5252
if (parent.data('type') === 'disabled') return;

0 commit comments

Comments
 (0)