Description
I have a React application using a Mantine modal that has an input with autofocus. The table will steal the keyboard events if it was active when clicking to open the modal:
I have had this issue before and then I could check if the active element class name was handsontableInput
if (document.activeElement.className !== "handsontableInput" &&
document.activeElement.className !== "HandsontableCopyPaste") {
event.stopImmediatePropagation();
}
But this technique doesn’t work for me anymore…
If I manually click the input this issue doesn’t manifest.
Any suggestions?