Closed nueverest closed 8 years ago
I realize that I'm pushing the limits here by trying to use this code snippet in Vue 2.0.
That said, line 13 self.el.focus(); produces an error under Vue 2.0.
self.el.focus();
Uncaught TypeError: Cannot read property 'focus' of undefined. and the nextTickHandler is identified in the vue 2.0 JS file.
Uncaught TypeError: Cannot read property 'focus' of undefined.
nextTickHandler
var focusAuto = { priority: 100, bind: function() { var self = this; this.bound = true; var Vue__default = 'default' in Vue ? Vue['default'] : Vue; Vue__default.nextTick(function() { if (self.bound === true) { self.el.focus(); } }); }, unbind: function(){ this.bound = false; } };
Hi! Sorry for taking so long to respond. I've opened an 2.0 support issue.
I realize that I'm pushing the limits here by trying to use this code snippet in Vue 2.0.
That said, line 13
self.el.focus();
produces an error under Vue 2.0.Uncaught TypeError: Cannot read property 'focus' of undefined.
and thenextTickHandler
is identified in the vue 2.0 JS file.