mirror of
https://github.com/zotero/zotero.git
synced 2026-09-27 01:21:27 +00:00
Fix incorrect context menu when renaming collection #5374
This commit is contained in:
parent
057c798202
commit
248ddf05d2
1 changed files with 4 additions and 0 deletions
|
|
@ -727,6 +727,10 @@ class VirtualizedTable extends React.Component {
|
|||
}
|
||||
|
||||
_handleContextMenu = async (e, index) => {
|
||||
if (e.target.nodeName.toLocaleLowerCase() === 'input') {
|
||||
// Do not hijack context menu on inputs, fixes #5374
|
||||
return;
|
||||
}
|
||||
if (!this.selection.isSelected(index)) {
|
||||
this._onSelection(index, false, false);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue