1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-10 08:44:46 +02:00

Fix issue where Inputfield showIf condition that matches a single period "." was not working correctly due to jQuery adjustments from a couple weeks ago

This commit is contained in:
Ryan Cramer
2023-05-02 09:08:59 -04:00
parent 2fcb2f4bda
commit 908479d786
2 changed files with 2 additions and 2 deletions

View File

@@ -1050,7 +1050,7 @@ function InputfieldDependencies($target) {
str = str.toString().trim(); str = str.toString().trim();
if(str.length > 0) { if(str.length > 0) {
if(/^-?[\d.]+$/.test(str)) { if(/^-?\d[\d.]*$/.test(str)) {
// isNumeric // isNumeric
} else { } else {
return str; return str;

File diff suppressed because one or more lines are too long