Browse Source

test: avoid test error

pull/471/head
tangjinzhou 6 years ago
parent
commit
041cca740d
  1. 8
      components/vc-trigger/Popup.jsx

8
components/vc-trigger/Popup.jsx

@ -210,9 +210,11 @@ export default {
enter: (el, done) => {
// align updated
this.$nextTick(() => {
this.$refs.alignInstance.$nextTick(() => {
animate(el, `${transitionName}-enter`, done);
});
if (this.$refs.alignInstance) {
this.$refs.alignInstance.$nextTick(() => {
animate(el, `${transitionName}-enter`, done);
});
}
});
},
leave: (el, done) => {

Loading…
Cancel
Save