Skip to content

Commit a865ef0

Browse files
committed
hard code
1 parent 93a713c commit a865ef0

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

packages/moti/src/core/use-motify.ts

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -413,17 +413,19 @@ export function useMotify<Animate>({
413413

414414
const exitingStyleProps: Record<string, boolean> = {}
415415

416-
const disabledExitStyles = {
417-
position: true,
418-
zIndex: true,
419-
borderTopStyle: true,
420-
borderBottomStyle: true,
421-
borderLeftStyle: true,
422-
borderRightStyle: true,
423-
borderStyle: true,
424-
}
416+
const disabledExitStyles = new Set([
417+
'position',
418+
'zIndex',
419+
'borderTopStyle',
420+
'borderBottomStyle',
421+
'borderLeftStyle',
422+
'borderRightStyle',
423+
'borderStyle',
424+
'pointerEvents',
425+
'outline',
426+
])
425427
Object.keys(exitStyle || {}).forEach((key) => {
426-
if (!disabledExitStyles[key]) {
428+
if (!disabledExitStyles.has(key)) {
427429
exitingStyleProps[key] = true
428430
}
429431
})

0 commit comments

Comments
 (0)