From e3c86240ba41448d8e39cccbe3c0b1c3f37bd29c Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Fri, 21 Sep 2018 15:57:21 +1000 Subject: [PATCH] toString the value before testing decimal If the value contains an actual number, `includes` will fail. Forcibly convert to a numeric type. --- public/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/index.html b/public/index.html index c7e1e8fd97..cd0bbbf9b9 100644 --- a/public/index.html +++ b/public/index.html @@ -152,7 +152,7 @@ function decimalPressed() { - if (getValue().includes('.')) { + if (getValue().toString().includes('.')) { return; }