fix: allow negative numbers in grid search (#24989)
This commit is contained in:
parent
dab06f33b1
commit
2dffcc08ab
1 changed files with 1 additions and 1 deletions
|
|
@ -1569,7 +1569,7 @@ Object.assign(frappe.utils, {
|
|||
only_allow_num_decimal(input) {
|
||||
input.on("input", (e) => {
|
||||
let self = $(e.target);
|
||||
self.val(self.val().replace(/[^0-9.]/g, ""));
|
||||
self.val(self.val().replace(/[^0-9.\-]/g, ""));
|
||||
if (
|
||||
(e.which != 46 || self.val().indexOf(".") != -1) &&
|
||||
(e.which < 48 || e.which > 57)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue