diff --git a/packages/framer-motion/src/motion/utils/should-inherit-variant.ts b/packages/framer-motion/src/motion/utils/should-inherit-variant.ts index 0481fc084f..d17918faf9 100644 --- a/packages/framer-motion/src/motion/utils/should-inherit-variant.ts +++ b/packages/framer-motion/src/motion/utils/should-inherit-variant.ts @@ -5,5 +5,5 @@ export function checkShouldInheritVariant({ variants, inherit, }: MotionProps): boolean { - return inherit ?? (!!variants && !animate) + return inherit !== undefined ? inherit : !!variants && !animate }