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
Post a Comment