Skip to content

Commit ac7e63e

Browse files
committed
reset: simplify code for password inputs
1 parent 0238fb6 commit ac7e63e

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

R/reset.R

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,6 @@ reset <- function(id = "", asis = FALSE) {
8787
type <- messages[[x]][['type']]
8888
value <- messages[[x]][['value']]
8989

90-
# password inputs don't have an updatePasswordInput, they use text
91-
if (type == "Password") {
92-
type <- "Text"
93-
}
94-
9590
# Make sure reset works with namespacing (shiny modules)
9691
id <- x
9792
if (substring(id, 1, nchar(nsName)) == nsName) {

inst/srcjs/shinyjs-default-funcs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ shinyjs = function() {
379379
// passwordInput
380380
else if (input.children("input[type='password']").length > 0) {
381381
input = input.children("input[type='password']");
382-
inputType = "Password";
382+
inputType = "Text";
383383
}
384384
// textAreaInput
385385
else if (input.children("textarea").length > 0) {

0 commit comments

Comments
 (0)