beicon icon indicating copy to clipboard operation
beicon copied to clipboard

Add ability to pass options to addEventListener in from-event

Open mdbenito opened this issue 8 months ago • 0 comments

This PR

  • Extends from-event to accept an optional third arg with options for addEventListener. This is useful e.g. to listen to wheel events in a non-passive way so as to be able to stop them from propagating.
  • Adds a unit test (although I wonder about the usefulness of such a test given that the target is mocked... 🤷🏽)

mdbenito avatar Jun 17 '25 09:06 mdbenito