Sfoglia il codice sorgente

Tooltip: fix bug in ssr, fixed #3152 (#3153)

cinwell.li 8 anni fa
parent
commit
096aaee30c
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      packages/tooltip/src/main.js

+ 2 - 0
packages/tooltip/src/main.js

@@ -52,6 +52,8 @@ export default {
   },
 
   render(h) {
+    if (this.$isServer) return;
+
     this.popperVM.node = (
       <transition
         name={ this.transition }