Skip to content

Commit 1ac26d0

Browse files
committed
remove v-repeat focus (perf reasons)
1 parent 14e01eb commit 1ac26d0

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/directives/repeat.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,6 @@ module.exports = {
237237
*/
238238

239239
diff: function (data, oldVms) {
240-
var activeElement = document.activeElement
241240
var idKey = this.idKey
242241
var converted = this.converted
243242
var anchor = this.anchor
@@ -328,9 +327,6 @@ module.exports = {
328327
}
329328
vm._reused = false
330329
}
331-
if (activeElement) {
332-
activeElement.focus()
333-
}
334330
return vms
335331
},
336332

0 commit comments

Comments
 (0)