Skip to content

Commit

Permalink
Merge branch 'master' into bugfix-hjw-241220
Browse files Browse the repository at this point in the history
  • Loading branch information
hiyuki authored Dec 23, 2024
2 parents 3f781aa + d35c8b5 commit 7ad1e61
Showing 1 changed file with 3 additions and 5 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 @@ -317,11 +316,10 @@ const useInnerProps = (
}
}

if (!rawEventKeys.length || config.disableTouch) {
return omit(propsRef.current, removeProps)
}

const events = useMemo(() => {
if (!rawEventKeys.length) {
return {}
}
const transformedEventKeys = rawEventKeys.reduce((acc: string[], key) => {
if (propsRef.current[key]) {
return acc.concat(eventConfig[key])
Expand Down

0 comments on commit 7ad1e61

Please sign in to comment.