Skip to content

Commit

Permalink
fix: modal exiting transition type
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <tukon479@gmail.com>
  • Loading branch information
Innei committed Dec 10, 2024
1 parent 2d31b64 commit 5bb0100
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions apps/renderer/src/components/ui/modal/stacked/constants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Target } from "framer-motion"
import type { MotionProps, Target } from "framer-motion"

import { microReboundPreset } from "../../constants/spring"

Expand All @@ -14,9 +14,15 @@ const initialStyle: Target = {
export const modalMontionConfig = {
initial: initialStyle,
animate: enterStyle,
exit: initialStyle,
exit: {
...initialStyle,
// no spring
transition: {
type: "tween",
},
},
transition: microReboundPreset,
}
} satisfies MotionProps

// Radix context menu z-index 999
export const MODAL_STACK_Z_INDEX = 1001

0 comments on commit 5bb0100

Please sign in to comment.