react-css-collapse
Advanced tools
Comparing version 3.3.0 to 3.3.1
# 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 @@ |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38300
317