Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-css-collapse

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-css-collapse - npm Package Compare versions

Comparing version 4.0.3 to 4.0.4

4

CHANGELOG.md
# Changelog
# 4.0.4
> January 14, 2020
* :bug: **Bugfix** Remove animation / calculation on first render
# 4.0.3

@@ -4,0 +8,0 @@ > January 8, 2020

2

lib/useCollapse.js

@@ -65,3 +65,3 @@ "use strict";

}
} else {
} else if (!isFirstRender) {
setHeight(getHeight(content)); // The magic: Set collapsed style after setting height to enable smooth transition based on height

@@ -68,0 +68,0 @@

{
"name": "react-css-collapse",
"version": "4.0.3",
"version": "4.0.4",
"description": "Component-wrapper for collapse animation with css for elements with variable and dynamic height",

@@ -57,10 +57,10 @@ "author": {

"devDependencies": {
"@babel/cli": "^7.7.7",
"@babel/core": "^7.7.7",
"@babel/plugin-transform-runtime": "^7.7.6",
"@babel/preset-env": "^7.7.7",
"@babel/preset-react": "^7.7.4",
"@storybook/addon-actions": "^5.2.8",
"@storybook/addon-knobs": "^5.2.8",
"@storybook/react": "^5.2.8",
"@babel/cli": "^7.8.3",
"@babel/core": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.8.3",
"@babel/preset-env": "^7.8.3",
"@babel/preset-react": "^7.8.3",
"@storybook/addon-actions": "^5.3.2",
"@storybook/addon-knobs": "^5.3.2",
"@storybook/react": "^5.3.2",
"@testing-library/jest-dom": "^4.2.4",

@@ -77,4 +77,4 @@ "@testing-library/react": "^9.4.0",

"eslint-config-prettier": "^6.7.0",
"eslint-plugin-import": "^2.19.1",
"eslint-plugin-jest": "^23.3.0",
"eslint-plugin-import": "^2.20.0",
"eslint-plugin-jest": "^23.6.0",
"eslint-plugin-jsx-a11y": "^6.1.1",

@@ -81,0 +81,0 @@ "eslint-plugin-prettier": "^3.1.2",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc