Because const formInputs = ['button', 'input', 'select', 'textarea'] includes an input tag,
"whatintent" value persists "mouse" after pressed a key on a checkbox or a radio.
Possible solution:
`
const notFormInput =
activeElem &&
activeElem.nodeName &&
(formInputs.indexOf(activeElem.nodeName.toLowerCase()) === -1 ||
activeElem.type === "radio"
|| activeElem.type === "checkbox"
|| (activeElem.nodeName.toLowerCase() === "button" &&
!checkClosest(activeElem, "form")));`
Because
const formInputs = ['button', 'input', 'select', 'textarea']includes aninputtag,"whatintent" value persists "mouse" after pressed a key on a checkbox or a radio.
Possible solution:
`