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

rc-collapse

Package Overview
Dependencies
Maintainers
2
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-collapse - npm Package Compare versions

Comparing version 1.2.6 to 1.2.7

11

lib/Panel.js

@@ -12,2 +12,4 @@ 'use strict';

var cssAnimation = require('css-animation');
var event = require('css-animation/lib/Event');
var isSupportCssAnimate = event.endEvents.length > 0;

@@ -95,4 +97,12 @@ module.exports = createClass({

var el = findDOMNode(this.refs.content);
if (!isSupportCssAnimate) {
el.style.height = opacity ? 'auto' : 0;
return;
}
var scrollHeight = el.scrollHeight + 'px';
var collapsing = this.props.prefixCls + '-collapsing';
cssAnimation.addClass(el, collapsing);
// start state

@@ -107,2 +117,3 @@ el.style.height = opacity ? scrollHeight : 0;

cssAnimation.setTransition(el, 'Property', '');
cssAnimation.removeClass(el, collapsing);
});

@@ -109,0 +120,0 @@ }

2

package.json
{
"name": "rc-collapse",
"version": "1.2.6",
"version": "1.2.7",
"description": "rc-collapse ui component for react",

@@ -5,0 +5,0 @@ "keywords": [

@@ -33,3 +33,3 @@ # rc-collapse

online example: http://react-component.github.io/collapse/examples/
online example: http://react-component.github.io/collapse/

@@ -36,0 +36,0 @@

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