Merge pull request #38075 from wfhp/wfhp-fix-currency-keyboard
fix: use inputmode="decimal" for Float, Currency, and Percent fields
This commit is contained in:
commit
205d025ae6
1 changed files with 1 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
|||
frappe.ui.form.ControlFloat = class ControlFloat extends frappe.ui.form.ControlInt {
|
||||
static input_mode = "decimal";
|
||||
parse(value) {
|
||||
value = this.eval_expression(value);
|
||||
return isNaN(parseFloat(value)) ? null : flt(value, this.get_precision());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue