@cfpb/cfpb-atomic-component
Advanced tools
Comparing version
{ | ||
"name": "@cfpb/cfpb-atomic-component", | ||
"version": "0.7.6", | ||
"version": "0.7.7", | ||
"description": "Design System atomic component micro-framework", | ||
@@ -16,3 +16,3 @@ "less": "src/cfpb-atomic-component.less", | ||
], | ||
"gitHead": "adeb995978f6fa215ab1617168648b53f6459401" | ||
"gitHead": "bf684fe7a4868527e201f30c3bc1de4507bb962e" | ||
} |
@@ -34,3 +34,3 @@ // Required modules. | ||
element.style.maxHeight = element.scrollHeight + 'px'; | ||
refresh(); | ||
@@ -96,2 +96,9 @@ const _transitionCompleteBinded = _transitionComplete.bind( this ); | ||
/** | ||
* Refresh the max height set on the element. | ||
*/ | ||
function refresh() { | ||
element.style.maxHeight = element.scrollHeight + 'px'; | ||
} | ||
/** | ||
* Remove style attribute. | ||
@@ -118,2 +125,3 @@ * Remove all transition classes, if transition is initialized. | ||
this.setElement = _baseTransition.setElement; | ||
this.refresh = refresh; | ||
this.remove = remove; | ||
@@ -120,0 +128,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
60993
1.91%21
5%1479
2.85%