Skip to content

Releases: Threespot/expand-toggle

v3.1.1

22 Aug 20:23

Choose a tag to compare

Move ev-emitter to dependencies in package.json

v3.1.0

22 Aug 19:26

Choose a tag to compare

Update the main file in package.json to point to the uncompiled index.js file.

v3.0.1

22 Aug 19:12

Choose a tag to compare

Add use client directive to avoid errors with super() in some frameworks (see https://react.dev/reference/rsc/use-client)

v3.0.0

02 Mar 17:48

Choose a tag to compare

Removes all JS related to setting the max-height in favor of this CSS-only approach:
https://www.stefanjudis.com/snippets/how-to-animate-height-with-css-grid/

See readme for new base markup and styles.

NOTE: The expand animation doesn’t work in Safari 15 or below.

v2.1.0

31 Aug 19:27

Choose a tag to compare

  • Fix edge-case issue when updateExpandedHeight() is called on an expandable without data-expands-height
  • Drop lodash dependency, add simple debounce function instead
  • Update dependencies, drop unused husky dependency
  • Bump minimum Node version to v16

v2.0

04 Sep 19:11

Choose a tag to compare

Bump minimum version of NodeJS to v10, update npm dependencies.

Fix bug preventing recalc on window resize

10 Jul 19:38

Choose a tag to compare

This fixes a bug that was introduced here 71a61ef#diff-168726dbe96b3ce427e7fedce31bb0bcL85 which was preventing the max-height from updating on window resize when the component was collapsed.

v1.6.1

13 Mar 02:14

Choose a tag to compare

Fix bug causing checked radio or checkbox inputs from being unchecked when inside of collapsible element. This happened because the cloned input elements had the same name attribute.

v1.6.0

12 Mar 18:00

Choose a tag to compare

Adds option to expand the menu by default, either by adding data-expanded on the toggle or setting shouldStartExpanded: true in the JS config.

NOTE: The menu won’t expand until JS runs, so if you would like the menu to be expanded immediately you can add aria-hidden="false" to the menu wrapper.

v1.5.1

14 Feb 20:51

Choose a tag to compare

Update npm dependencies