Sfoglia il codice sorgente

remove v-repeat focus (perf reasons)

Evan You 11 anni fa
parent
commit
1ac26d018f
1 ha cambiato i file con 0 aggiunte e 4 eliminazioni
  1. 0 4
      src/directives/repeat.js

+ 0 - 4
src/directives/repeat.js

@@ -237,7 +237,6 @@ module.exports = {
    */
 
   diff: function (data, oldVms) {
-    var activeElement = document.activeElement
     var idKey = this.idKey
     var converted = this.converted
     var anchor = this.anchor
@@ -328,9 +327,6 @@ module.exports = {
       }
       vm._reused = false
     }
-    if (activeElement) {
-      activeElement.focus()
-    }
     return vms
   },