Skip to content

Possible bug: value persists "mouse" after pressed a key on a checkbox or a radio. #128

@DmitryLen

Description

@DmitryLen

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")));`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions