@@ -3,6 +3,7 @@ library(shiny.tailwind)
3
3
library(shiny.i18n )
4
4
library(dplyr )
5
5
library(cookies )
6
+ library(htmltools )
6
7
7
8
source(" global.R" )
8
9
@@ -30,10 +31,12 @@ ui <- add_cookie_handlers(
30
31
a(href = " #" , class = " btn btn-ghost text-xl" ,
31
32
tags $ div(class = " title-comb" , icon(" check-to-slot" ), tags $ h1(i18n $ t(" Greek Elections App" ))))),
32
33
div(class = " flex-none gap-x-3" ,
33
- selectInput(' selected_language' ,width = " 10em" ,
34
+ htmltools :: tagAppendAttributes( selectInput(' selected_language' ,width = " 10em" ,
34
35
label = " " ,
35
36
choices = c(" English" = " en" , " Ελληνικά" = " el" ),
36
- selected = i18n $ get_key_translation())
37
+ selected = i18n $ get_key_translation()),
38
+
39
+ readonly = " " , .cssSelector = " input" )
37
40
),
38
41
),
39
42
div(class = " wrapper-card" ,
@@ -390,7 +393,7 @@ server <- function(input, output, session) {
390
393
391
394
observeEvent(input $ selected_language , {
392
395
output $ tab_content <- renderUI({
393
- selectInput(
396
+ htmltools :: tagAppendAttributes( selectInput(
394
397
inputId = " elect_systems" ,
395
398
label = " " ,
396
399
width = " 280px" ,
@@ -399,7 +402,9 @@ observeEvent(input$selected_language, {
399
402
setNames(c(' nobonus' ), i18n $ t(" No Bonus (2023Α)" )),
400
403
setNames(c(' propbonus' ), i18n $ t(" Proportional Bonus (2023Β-" ))
401
404
),
402
- selected = default_selected())
405
+ selected = default_selected()),
406
+
407
+ readonly = " " , .cssSelector = " input" )
403
408
})
404
409
})
405
410
0 commit comments