Permalink
Browse files

fix: 表格中float类型在行之间切换编辑数据会错乱

  • Loading branch information...
1 parent 5652df3 commit 7c302ade18de92aa7fe1f99410c254adf6f9676c liuyk committed Dec 6, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/component/keroa-float.js
@@ -115,7 +115,7 @@ var FloatAdapter = BaseAdapter.extend({
this.setShowValue(this.showValue)
},
onFocusin: function () {
- var v = this.dataModel.getCurrentRow().getValue(this.field), vstr = v + '', focusValue = v;
+ var v = this.getValue(), vstr = v + '', focusValue = v;
if (isNumber(v) && isNumber(this.maskerMeta.precision)) {
if (vstr.indexOf('.') >= 0) {
var sub = vstr.substr(vstr.indexOf('.') + 1);

0 comments on commit 7c302ad

Please sign in to comment.