Motion: [BUG] toType.transform is not a function

Created on 27 Aug 2020  路  1Comment  路  Source: framer/motion

Description

Hello there.

So, on [email protected] this validation has been added: https://github.com/framer/motion/compare/v2.6.1...v2.6.2#diff-43dd2c39c36b17f0016ccc25e03ea6e8R227

And it breaks height animation from 0 to auto.

Code Sandbox

@InventingWithMonster example: https://codesandbox.io/s/framer-motion-accordion-qx958?fontsize=14&module=%2Fsrc%2FExample.tsx

Steps to Reproduce

  1. Open the codesandbox mentioned;
  2. Switch the version from 1.2.0 to 2.6.2
  3. Try to click on the expanded animation
  4. See error

Expected behavior

It keeps animating between height 0 and height auto.

Keep in mind that on 2.6.1 it's still working.

Environment details

It happens in any browser

bug

Most helpful comment

Thanks for the report! This is fixed in 2.6.3

>All comments

Thanks for the report! This is fixed in 2.6.3

Was this page helpful?
0 / 5 - 0 ratings