File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed
Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff 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 } )
You can’t perform that action at this time.
0 commit comments