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
parent c945afb2e1
commit 0e3b695a85
No known key found for this signature in database
GPG key ID: EEC61A7B4C667D77

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;
}