mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-23 01:22:30 +01:00
Better parent click finding, fixes bugs when clicking directly on words
This commit is contained in:
parent
77198b48df
commit
d06f83a0cd
@ -46,7 +46,7 @@ class ContextMenuClass {
|
||||
rightClick() {
|
||||
$('#file_listing > tbody td').on('contextmenu', event => {
|
||||
|
||||
const parent = $(event.target).parent();
|
||||
const parent = $(event.target).closest('tr');
|
||||
const menu = $(this.makeMenu());
|
||||
|
||||
if (parent.data('type') === 'disabled') return;
|
||||
|
Loading…
Reference in New Issue
Block a user