From 02c26a69386675b65a2d60d2e3209062e5df0143 Mon Sep 17 00:00:00 2001 From: Nikita MIkhailov Date: Sun, 26 Jun 2022 11:23:08 +0300 Subject: [PATCH] feat(onLongPress): using event modifiers with directive and array value. --- packages/core/onLongPress/directive.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/onLongPress/directive.ts b/packages/core/onLongPress/directive.ts index e7403839cc3..bb32d6c9cac 100644 --- a/packages/core/onLongPress/directive.ts +++ b/packages/core/onLongPress/directive.ts @@ -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) }, }