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 3.3.0 to 3.3.1

6

CHANGELOG.md
# Changelog
# 3.3.1
> July 05, 2018
* :bug: **Bugfix** Check if element target equals content on transition end
# 3.3.0
> Nov 15, 2017
> July 04, 2018
* :tada: **Enhancement** Setting `visibility: hidden` when collapse is closed to prevent screenreaders from reading the content

@@ -6,0 +10,0 @@

17

lib/components/Collapse.js

@@ -96,11 +96,12 @@ 'use strict';

if (isOpen) {
this.setExpanded();
} else {
this.setCollapsed();
if (e.target === this.content && e.propertyName === 'height') {
if (isOpen) {
this.setExpanded();
} else {
this.setCollapsed();
}
if (onRest) {
onRest();
}
}
if (onRest && e.target === this.content && e.propertyName === 'height') {
onRest();
}
}

@@ -107,0 +108,0 @@ }, {

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

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

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