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:
Ejaaz Khan 2026-04-01 21:17:41 +05:30 committed by GitHub
commit 205d025ae6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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());