You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a VueUse issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
Check that this is a concrete bug. For Q&A open a GitHub Discussion.
Describe the bug
When passing falsy values into
trigger
function ofcreateEventHook
these won't be correctly passed toon
handlers.Got broken in this PR: #3507
Unfortunately check in
trigger
function will ignore all falsy parameters. Should probably be more explicit and check againstundefined
.vueuse/packages/shared/createEventHook/index.ts
Line 42 in 656fe54
Reproduction
https://play.vueuse.org/#N4IgDghgxg1hDmBTAziAXAbVAOwgW0XRADcBXRAWgBNE8BLEAGhGQHtSAnKQtEU7MDHhMQNZFA50wAFzqtsRAGrkABABFadFQAoAFhAA2AMxV1sKgGIdE2KLoCUp5CogqaxRAdZgz8FaVkDOmkATxcDLwB3ZxD2FWlWFUjJaUQVAFVsOg8OZEMVZTSAGToAIw4ISRQVI1YOAtUAJhUAMhUAZhFOAyJdaWkwZDQAemH+QXgAOihWPGGyShp6YaDS4bMaAA9JvAArVABfRhx8HhAAAQXSZERhmesRNk5uIgBRTdSOXB7mbt7+wYjMYCITTWbDS7ka63e6Ic4ARgADJMAGyTeHrbBbHb7EBHE4EIiQxDQ4bIfTWKiPdhcM7vT7fLocHq8PoDIajcagmZzYmk8mVRBUBHItEYjaIbZ7Q4AXWYRjoBhQ6FAAEEwGBJgsVSBUngwAYIKkiAAeKjZAB8AB1zCoTaUAglzKEwIgALxWkAO-ryT0qc5QIKwD26yTwJAcbSI+yei0ABQgyGcAHJEcmTcNvU7rbb7Rwcyo7Vn5PEQq6Q8XsH6A0GYCHpGGI9ojIYbjGQPHEymWwYbunM475AWi-VhsP7YPnWX3Z7K9XA3Rg56G3Rw4hI9hSBF252kypk5uIv3K+PyioxzaACqN9dCtAqYDAeI3ykqA4HG2FvPnnMAJUQ3DEHQd4Pk+1jcNkQpvh+ubDOaxAWo8EhSNIRB0PqdTSA+KgSIgRqIK8HjYNIAASrCsDAb41Bwsz7nyNx3HUiDJja6FgJh2HWCYBzUbRyYLMmADcNozNgyBYU+K5rhwjAqCWPFujh1j4YRNikeRMDaPYwlVrY8jiSo4GIJBVAqIpXFaTpokGVJEZQeZiBGFG2k2ja8jaNoxCGOQjhuhaD6fs+q52VQWreYgADUEU6YWRkmWFBiqIpXmJYgOkHNpeLvkAA
System Info
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: