如果您不能使用passwordInput
,我们可以使用htmltools::tagQuery设置autocomplete = "off":
library(shiny)
library(htmltools)
ui <- fluidPage(
tagQuery(textInput("test", "test"))$find("input")$addAttrs("autocomplete" = "off")$allTags()
)
server <- function(input, output, session) {
}
shinyApp(ui, server)