Skip to content

Commit ff0995b

Browse files
committed
fix svg reverse computedStyle no change
1 parent 58e6dd3 commit ff0995b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rc-tween-one",
3-
"version": "2.2.19",
3+
"version": "2.2.20",
44
"description": "tween-one anim component for react",
55
"keywords": [
66
"react",

src/Tween.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,7 @@ p.resetDefaultStyle = function () {
399399
Object.keys(this.startDefaultData).forEach(key => {
400400
if (!(key in defaultData({}, 0))) {
401401
this.target.setAttribute(key, this.startDefaultData[key]);
402+
this.computedStyle = null;
402403
}
403404
});
404405
};

0 commit comments

Comments
 (0)