From 7d75de604f550fcd51de064f590fe34a0d20848f Mon Sep 17 00:00:00 2001 From: eon-lee Date: Mon, 25 Mar 2024 10:26:18 +0800 Subject: [PATCH] feat(utils): add touchstart event to PropagationEvent (#6578) --- src/utils/with-stop-propagation.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/with-stop-propagation.tsx b/src/utils/with-stop-propagation.tsx index 6155e3a0c6..969bd26af1 100644 --- a/src/utils/with-stop-propagation.tsx +++ b/src/utils/with-stop-propagation.tsx @@ -1,9 +1,10 @@ import React from 'react' import type { ReactElement } from 'react' -export type PropagationEvent = 'click' +export type PropagationEvent = 'click' | 'touchstart' const eventToPropRecord: Record = { 'click': 'onClick', + 'touchstart': 'onTouchStart' } export function withStopPropagation(