From 8b5326ba924dfe19b02e44ffe0c1f1ac9aa4eb1d Mon Sep 17 00:00:00 2001 From: Patrick McEnaney Date: Wed, 22 May 2019 16:13:17 +0300 Subject: [PATCH] Delete removeAttribute --- src/CSSTransition.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/CSSTransition.js b/src/CSSTransition.js index 2c5e348..5c25f2c 100644 --- a/src/CSSTransition.js +++ b/src/CSSTransition.js @@ -201,10 +201,6 @@ class CSSTransition extends React.Component { if (doneClassName) { removeClass(node, doneClassName); } - // Remove class atribute if it is empty - if(node && !node.className.trim()) { - node.removeAttribute('class'); - } } render() {