javascript - MeteorJS: Input value in a table is displayed twice -


i have issue meteorjs regards inserting value editable table. whenever insert value , blur event handler called (doing update operation db), value in table cell displayed twice.

i have code available at: https://github.com/jeffrey-effendy/sudolver

thanks help!

i have experienced similar contenteditable fields. think caused because value stays in cell {{value}} adds value, displaying twice.

you can fix clearing cell first:

template.createcell.events({     "blur .cell": function(e) {        var val = $(e.currenttarget).text();        $(e.currenttarget).text('');        meteor.call("update", this._id, val);     } }); 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -