Skip to content

Commit

Permalink
hard code
Browse files Browse the repository at this point in the history
  • Loading branch information
nandorojo committed Feb 20, 2024
1 parent 93a713c commit a865ef0
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions packages/moti/src/core/use-motify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -413,17 +413,19 @@ export function useMotify<Animate>({

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

const disabledExitStyles = {
position: true,
zIndex: true,
borderTopStyle: true,
borderBottomStyle: true,
borderLeftStyle: true,
borderRightStyle: true,
borderStyle: true,
}
const disabledExitStyles = new Set([
'position',
'zIndex',
'borderTopStyle',
'borderBottomStyle',
'borderLeftStyle',
'borderRightStyle',
'borderStyle',
'pointerEvents',
'outline',
])
Object.keys(exitStyle || {}).forEach((key) => {
if (!disabledExitStyles[key]) {
if (!disabledExitStyles.has(key)) {
exitingStyleProps[key] = true
}
})
Expand Down

0 comments on commit a865ef0

Please sign in to comment.