Skip to content

Commit

Permalink
feat(onLongPress): using event modifiers with directive and array value.
Browse files Browse the repository at this point in the history
  • Loading branch information
chaii3 committed Jun 26, 2022
1 parent 2b383b1 commit 02c26a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/onLongPress/directive.ts
Expand Up @@ -19,7 +19,7 @@ BindingValueFunction | BindingValueArray
if (typeof binding.value === 'function')
onLongPress(el, binding.value, { modifiers: binding.modifiers })
else
onLongPress(el, binding.value[0], { ...binding.value[1], modifiers: binding.modifiers })
onLongPress(el, ...binding.value)
},
}

Expand Down

0 comments on commit 02c26a6

Please sign in to comment.