From 14f4d495558a591f6682c07a523c9341230a4dbe Mon Sep 17 00:00:00 2001 From: DCloud_LXH <283700113@qq.com> Date: Tue, 21 Dec 2021 18:34:43 +0800 Subject: [PATCH] fix(H5): normalizeMouseEvent add contextmenu --- packages/uni-core/src/view/plugin/componentInstance.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/uni-core/src/view/plugin/componentInstance.ts b/packages/uni-core/src/view/plugin/componentInstance.ts index 5ccbf8961..27b3e01e6 100644 --- a/packages/uni-core/src/view/plugin/componentInstance.ts +++ b/packages/uni-core/src/view/plugin/componentInstance.ts @@ -6,7 +6,7 @@ import { wrapperH5WxsEvent } from './componentWxs' const isClickEvent = (val: Event): val is MouseEvent => val.type === 'click' const isMouseEvent = (val: Event): val is MouseEvent => - val.type.indexOf('mouse') === 0 + val.type.indexOf('mouse') === 0 || ['contextmenu'].includes(val.type) // normalizeNativeEvent export function $nne( evt: Event, -- GitLab