input ng-model: whenever I type into input box the cursor moves to the end

1,068 views
Skip to first unread message

Oldrich Svec

unread,
Jan 25, 2013, 6:49:55 AM1/25/13
to ang...@googlegroups.com
Take a look here:


Whenever I type "n" the middle of the word "none" to change it into "nonne", the cursor moves to the end of the input. Do you have any idea why that happens?

The only thing that I was able to find until now is that this behavior stops when I remove ng-model="template.namefrom the input element.

Marco Rinck

unread,
Jan 25, 2013, 8:17:06 AM1/25/13
to ang...@googlegroups.com
your link does not work, following my messages in chrome console: 

musicope: Open Database pouch.alpha.js:1962
  1. TypeError: Object #<HTMLObjectElement> has no method 'MidiInList' at Jazz.inList (https://dl.dropbox.com/u/4571/ms/scripts/allViews/device/jazz.js:25:38) at addD (https://dl.dropbox.com/u/4571/ms/scripts/setupView/controller.js:41:41) at Ctrl.addDevices (https://dl.dropbox.com/u/4571/ms/scripts/setupView/controller.js:55:17) at new Ctrl (https://dl.dropbox.com/u/4571/ms/scripts/setupView/controller.js:25:22) at invoke (https://dl.dropbox.com/u/4571/ms/scripts/_lib/angular/angular/angular.js:2794:28) at Object.instantiate (https://dl.dropbox.com/u/4571/ms/scripts/_lib/angular/angular/angular.js:2804:23) at https://dl.dropbox.com/u/4571/ms/scripts/_lib/angular/angular/angular.js:4620:24 at update (https://dl.dropbox.com/u/4571/ms/scripts/_lib/angular/angular/angular.js:13774:26) at https://dl.dropbox.com/u/4571/ms/scripts/_lib/angular/angular/angular.js:8045:24 at Array.forEach (native) angular.js:5568
musicope: Start Changes Feed: continuous=undefined pouch.alpha.js:2551
musicope: Open Database pouch.alpha.js:1962
  1. TypeError: Object #<HTMLObjectElement> has no method 'MidiInList' at Jazz.inList (https://dl.dropbox.com/u/4571/ms/scripts/allViews/device/jazz.js:25:38) at addD (https://dl.dropbox.com/u/4571/ms/scripts/setupView/controller.js:41:41) at Ctrl.addDevices (https://dl.dropbox.com/u/4571/ms/scripts/setupView/controller.js:55:17) at new Ctrl (https://dl.dropbox.com/u/4571/ms/scripts/setupView/controller.js:25:22) at invoke (https://dl.dropbox.com/u/4571/ms/scripts/_lib/angular/angular/angular.js:2794:28) at Object.instantiate (https://dl.dropbox.com/u/4571/ms/scripts/_lib/angular/angular/angular.js:2804:23) at https://dl.dropbox.com/u/4571/ms/scripts/_lib/angular/angular/angular.js:4620:24 at update (https://dl.dropbox.com/u/4571/ms/scripts/_lib/angular/angular/angular.js:13774:26) at https://dl.dropbox.com/u/4571/ms/scripts/_lib/angular/angular/angular.js:8045:24 at Array.forEach (native) angular.js:5568
musicope: Start Changes Feed: continuous=undefined

Oldrich Svec

unread,
Jan 25, 2013, 11:27:56 AM1/25/13
to ang...@googlegroups.com
Hi Marco,

thank you for your email. I have hopefully corrected that problem. Try to open this page:


It should work on Chrome. IE does not work as far as I see. It is a full not stripped version. I was not able to reproduce the problem when I tried to create jsfiddle. The interesting part is the input fields below "List of available templates". Any help would be really helpful. 

Best regards,
Oldrich

Dave Stone

unread,
Jan 29, 2013, 10:53:48 AM1/29/13
to ang...@googlegroups.com
Did you solve this eventually?

Dave Stone

unread,
Jan 29, 2013, 11:07:09 AM1/29/13
to ang...@googlegroups.com
For me, looks like ng-model & value are clashing. Removing value worked for me.

value="{{songsUrl.value}}" ng-model="songsUrl.value"
Reply all
Reply to author
Forward
0 new messages