Tree: try to fix ie10 transition error.

pull/1426/head
Furybean 2016-11-28 16:10:26 +08:00 committed by 杨奕
parent 8a4b7ba6d7
commit ca1bdd43bd
1 changed files with 2 additions and 0 deletions

View File

@ -1,5 +1,6 @@
class Transition {
beforeEnter(el) {
if (!el.dataset) el.dataset = {};
el.dataset.oldPaddingTop = el.style.paddingTop;
el.dataset.oldPaddingBottom = el.style.paddingBottom;
el.style.height = '0';
@ -31,6 +32,7 @@ class Transition {
}
beforeLeave(el) {
if (!el.dataset) el.dataset = {};
el.dataset.oldPaddingTop = el.style.paddingTop;
el.dataset.oldPaddingBottom = el.style.paddingBottom;
el.dataset.oldOverflow = el.style.overflow;