Skip to content

Commit

Permalink
updated the type supports #16
Browse files Browse the repository at this point in the history
  • Loading branch information
akbor committed Aug 30, 2023
1 parent 3327d75 commit f28a511
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions src/st_keyup/frontend/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f28a511

Please sign in to comment.