Kendo NumericTextBox 中存在一个错误,它存在于函数 caret(element, position)

There is a bug in Kendo NumericTextBox which exists in function caret(element, position)

本文关键字:存在 于函数 caret position element 函数 一个 NumericTextBox Kendo 错误      更新时间:2023-09-26

此错误在 http://demos.kendoui.com/web/grid/editing.html 可见。

网格/批量编辑中,当您在库存数量列中输入十进制值时,然后单击"保存更改"页面不保存值,页面不执行任何保存。

也许剑道数字文本框中存在一个错误,它存在于函数 caret(元素,位置)我们在项目中收到此错误的未指定错误

Kendo 是否对这些字段使用 html5? 看起来像一个数字框,这可能是一个依赖于浏览器的问题。 为我使用 Chrome Canary 工作。 对于接受十进制的数值类型,标准是为默认为 1 的微调器控件指定"step"。 尝试添加一个 step 属性并将其设置为"any",该属性仍将按整数递增,但接受小数。

 UnitsInStock: { type: "number", validation: { min: 0, required: true, step: "any"} }

或者在剑道中,也许像

 <input id="numerictextbox" />
<script>
 $("#numerictextbox").kendoNumericTextBox({
  step: "any"
  });
 </script>