This is an automated email from the ASF dual-hosted git repository.

ankovalyshyn pushed a commit to branch DLAB-921
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git

commit bdedc428356b6798c8cd117d22fbb7175e94bf59
Author: Andriana Kovalyshyn <andriana_kovalys...@epam.com>
AuthorDate: Wed Aug 14 12:39:40 2019 +0200

    [DLAB-975]: extended numeric validation
---
 .../src/main/resources/webapp/src/app/core/util/checkUtils.ts         | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/services/self-service/src/main/resources/webapp/src/app/core/util/checkUtils.ts
 
b/services/self-service/src/main/resources/webapp/src/app/core/util/checkUtils.ts
index bad6764..163341c 100644
--- 
a/services/self-service/src/main/resources/webapp/src/app/core/util/checkUtils.ts
+++ 
b/services/self-service/src/main/resources/webapp/src/app/core/util/checkUtils.ts
@@ -31,7 +31,9 @@ export class CheckUtils {
 
   public static isNumberKey($event): boolean {
     const charCode = ($event.which) ? $event.which : $event.keyCode;
-    if (charCode !== 46 && charCode > 31 && (charCode < 48 || charCode > 57)) {
+    if (charCode > 31 && (charCode < 48 || charCode > 57)
+      && (charCode < 96 || charCode > 105)
+      || charCode === 45 || charCode === 47) {
       $event.preventDefault();
       return false;
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@dlab.apache.org
For additional commands, e-mail: commits-h...@dlab.apache.org

Reply via email to