From f28a511a22dab9ce1ec105c2c98bf48bb5cce79a Mon Sep 17 00:00:00 2001 From: akbor Date: Wed, 30 Aug 2023 23:37:11 +1000 Subject: [PATCH] updated the type supports #16 --- src/st_keyup/frontend/main.js | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/st_keyup/frontend/main.js b/src/st_keyup/frontend/main.js index 8b6024e..560c6f2 100644 --- a/src/st_keyup/frontend/main.js +++ b/src/st_keyup/frontend/main.js @@ -43,13 +43,19 @@ function onRender(event) { input.value = value } - if (type == "password") { - input.type = "password" - }else if(type == "text"){ - input.type = "text" + if(type == "password"){ + text_input.type = "password" } - else { - input.type = type + else if (type == "phone" || type == "tel") { + text_input.type = "tel" + } + else if (type == "email"){ + text_input.type = "email" + } + else if (type =="number"){ + text_input.type = "number" + }else{ + text_input.type = "text" } if (max_chars) {