capricorn86 / happy-dom

A JavaScript implementation of a web browser without its graphical user interface
MIT License
3.4k stars 206 forks source link

Change event fired too often on select element #1603

Closed fbecker-fds closed 1 week ago

fbecker-fds commented 1 week ago

Describe the bug After upgrading to v15 our tests started to fail because the change event on a select was fired way too often (twice as often in this reproducer).

To Reproduce Steps to reproduce the behavior:

  1. Go to https://stackblitz.com/edit/vitest-dev-vitest-hfkusq?file=test%2Fbasic.test.ts
  2. Run npm install && npm run test (uses v14)
  3. Tests work
  4. Upgrade happy-dom to v15 in package.json
  5. Run npm install && npm run test
  6. Tests fail
capricorn86 commented 1 week ago

Thank you for reporting @fbecker-fds! :slightly_smiling_face:

A fix has been released.