Skip to content

Commit

Permalink
feat(utils): add touchstart event to PropagationEvent (#6578)
Browse files Browse the repository at this point in the history
  • Loading branch information
eon-lee96 authored Mar 25, 2024
1 parent 937f845 commit 7d75de6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/with-stop-propagation.tsx
Original file line number Diff line number Diff line change
@@ -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<PropagationEvent, string> = {
'click': 'onClick',
'touchstart': 'onTouchStart'
}

export function withStopPropagation(
Expand Down

0 comments on commit 7d75de6

Please sign in to comment.