Skip to content

Commit

Permalink
chore: 下线disableTouch的支持
Browse files Browse the repository at this point in the history
  • Loading branch information
lareinayanyu committed Dec 23, 2024
1 parent b51a729 commit 06dfc2f
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@ const useInnerProps = (
const eventConfig: { [key: string]: string[] } = {}
const config = rawConfig || {
layoutRef: { current: {} },
disableTouch: false,
disableTap: false
}
const removeProps = [
Expand Down Expand Up @@ -318,7 +317,7 @@ const useInnerProps = (
}

const events = useMemo(() => {
if (!rawEventKeys.length || config.disableTouch) {
if (!rawEventKeys.length) {
return {}
}
const transformedEventKeys = rawEventKeys.reduce((acc: string[], key) => {
Expand All @@ -338,7 +337,7 @@ const useInnerProps = (
})

return events
}, [hashEventKey, config.disableTouch])
}, [hashEventKey])

return extendObject(
{},
Expand Down

0 comments on commit 06dfc2f

Please sign in to comment.