Use a more universal method of checking the element name

This commit is contained in:
Tom Najdek 2025-07-15 19:25:41 +02:00 committed by Dan Stillman
parent 78c1039a9f
commit 47f2821a3d

View file

@ -727,7 +727,7 @@ class VirtualizedTable extends React.Component {
}
_handleContextMenu = async (e, index) => {
if (e.target.nodeName.toLowerCase() === 'input') {
if (e.target.localName === 'input') {
// Do not hijack context menu on inputs, fixes #5374
return;
}