Closed cyyynthia closed 1 month ago
After a bit more testing; it seems the tooling I'm using does dispatch a new MouseEvent('click')
, which does not extend PointerEvent
causing the instanceof
checks to fail. Hope this helps!
@capricorn86 👆🏼
Thank you for reporting @cyyynthia and @dbritto-dev! :slightly_smiling_face:
There is a fix in now: https://github.com/capricorn86/happy-dom/releases/tag/v14.10.2
Describe the bug When triggering a click event on an
HTMLInputElement
, thechange
event is no longer fired in version 13.7.0 and up. Seems to affect all versions up to latest.To Reproduce Steps to reproduce the behavior:
change
event.dispatchEvent(new MouseEvent('click'))
Expected behavior The
click
andchange
events should both be fired.Device: