Shinyjs with R version 4.0.4

I am wondering if there is any issue of R version 4.0.4 to work with Shinyjs.
Initially, my R version 4.0.4 was installed with Shinyjs of version 2.0.0 and it is not working, so I suspect it is due to the higher version of Shinyjs, and I downgrade to version 1.1. But after downgraded to version 1.1, it is also not working as well.

I have another version of R version 3.6.3 which works well with Shinyjs 1.1.

I tested both R version 3.6.3 and R version 4.0.4 for Shinyjs with below code:

 observeEvent(input$plots_period, {
    if(input$plots_period_extruder == 8){
      shinyjs::enable("datetime_start")
      shinyjs::enable("datetime_end")
    } else {
      shinyjs::disable("datetime_start")
      shinyjs::disable("datetime_end")
    }
  })

R 3.6.3 works well as expected, but R 4.0.4 does not work. Why is this so?

> print(sessionInfo())
R version 3.6.3 (2020-02-29)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 18.04.5 LTS

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.7.1
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.7.1

locale:
 [1] LC_CTYPE=C.UTF-8       LC_NUMERIC=C           LC_TIME=C.UTF-8        LC_COLLATE=C.UTF-8     LC_MONETARY=C.UTF-8    LC_MESSAGES=C.UTF-8    LC_PAPER=C.UTF-8       LC_NAME=C             
 [9] LC_ADDRESS=C           LC_TELEPHONE=C         LC_MEASUREMENT=C.UTF-8 LC_IDENTIFICATION=C   

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] devtools_2.3.0         usethis_1.6.1          FactoMineR_2.4         fma_2.4                forecast_8.13          fpp2_2.4               quantmod_0.4.18        TTR_0.24.2            
 [9] R.utils_2.9.2          R.oo_1.23.0            R.methodsS3_1.8.0      fst_0.9.0              ISOweek_0.6-2          formattable_0.2.0.1    foreign_0.8-76         scales_1.1.1          
[17] RPostgreSQL_0.6-2      digest_0.6.27          htmlwidgets_1.5.3.9000 RgoogleMaps_1.4.5.3    sp_1.4-1               leaflet_2.0.3          flexdashboard_0.5.1.1  plotly_4.9.2.1        
[25] googleVis_0.6.4        DT_0.15.6              reshape2_1.4.3         tidyverse_1.3.0        tibble_3.0.3           ggplot2_3.3.2          plyr_1.8.6             shiny.i18n_0.1.0      
[33] shinyjqui_0.3.3        shinyTime_1.0.1        shinyWidgets_0.5.3     shinyjs_1.1            shinydashboard_0.7.1   shinyBS_0.61           shiny_1.5.0            pacman_0.5.1          
[41] readr_1.3.1            rhandsontable_0.3.7    magrittr_2.0.1         reticulate_1.16        dygraphs_1.1.1.6       xts_0.12-0             zoo_1.8-7              readxl_1.3.1          
[49] purrr_0.3.4            AzureRMR_2.3.6         AzureStor_3.1.1        taRifx_1.0.6.1         data.table_1.12.8      tidyr_1.0.2            dplyr_0.8.5            DBI_1.1.0             
[57] stringr_1.4.0          lubridate_1.7.8        officer_0.3.14         flextable_0.5.11      

loaded via a namespace (and not attached):
 [1] uuid_0.1-4               backports_1.1.10         systemfonts_0.3.2        lazyeval_0.2.2           crosstalk_1.1.0.1        AzureKeyVault_1.0.4.9000 odbc_1.2.2              
 [8] htmltools_0.5.0          fansi_0.4.1              memoise_1.1.0            cluster_2.1.0            remotes_2.2.0            modelr_0.1.8             prettyunits_1.1.1       
[15] tseries_0.10-48          colorspace_1.4-1         blob_1.2.1               ggrepel_0.9.1            rvest_0.3.6              rappdirs_0.3.1           haven_2.3.1             
[22] xfun_0.18                callr_3.4.4              crayon_1.3.4             jsonlite_1.7.2           glue_1.4.2               gtable_0.3.0             pkgbuild_1.1.0          
[29] Rcpp_1.0.5               viridisLite_0.3.0        xtable_1.8-4             bit_1.1-15.2             flashClust_1.01-2        httr_1.4.2               ellipsis_0.3.1          
[36] pkgconfig_2.0.3          nnet_7.3-14              dbplyr_1.4.2             tidyselect_1.1.0         rlang_0.4.10             later_1.1.0.1            munsell_0.5.0           
[43] cellranger_1.1.0         tools_3.6.3              cli_2.1.0                generics_0.0.2           broom_0.7.0              evaluate_0.14            fastmap_1.0.1           
[50] yaml_2.2.1               bit64_0.9-7              processx_3.4.4           knitr_1.30               fs_1.5.0                 zip_2.1.1                nlme_3.1-149            
[57] mime_0.9                 AzureGraph_1.1.2         leaps_3.1                xml2_1.3.2               compiler_3.6.3           rstudioapi_0.11          curl_4.3                
[64] png_0.1-7                testthat_2.3.2           reprex_0.3.0             stringi_1.5.3            ps_1.4.0                 desc_1.2.0               forcats_0.5.0           
[71] gdtools_0.2.2            lattice_0.20-41          expsmooth_2.3            Matrix_1.2-18            urca_1.3-0               vctrs_0.3.4              pillar_1.4.6            
[78] lifecycle_0.2.0          lmtest_0.9-38            httpuv_1.5.4             R6_2.5.0                 promises_1.1.1           sessioninfo_1.1.1        codetools_0.2-16        
[85] pkgload_1.1.0            MASS_7.3-53              assertthat_0.2.1         rprojroot_1.3-2          withr_2.3.0              fracdiff_1.5-1           parallel_3.6.3          
[92] hms_0.5.3                quadprog_1.5-8           grid_3.6.3               AzureAuth_1.2.5          timeDate_3043.102        rmarkdown_2.4            scatterplot3d_0.3-41    
[99] base64enc_0.1-3    
> print(sessionInfo())
R version 4.0.4 (2021-02-15)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 18.04.5 LTS

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.7.1
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.7.1

locale:
 [1] LC_CTYPE=C.UTF-8       LC_NUMERIC=C           LC_TIME=C.UTF-8        LC_COLLATE=C.UTF-8     LC_MONETARY=C.UTF-8    LC_MESSAGES=C.UTF-8   
 [7] LC_PAPER=C.UTF-8       LC_NAME=C              LC_ADDRESS=C           LC_TELEPHONE=C         LC_MEASUREMENT=C.UTF-8 LC_IDENTIFICATION=C   

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] devtools_2.3.2       usethis_2.0.1        magrittr_2.0.1       odbc_1.3.2.9000      AzureKeyVault_1.0.4  AzureRMR_2.4.1       qdapRegex_0.7.2     
 [8] repr_1.1.3           tdmsreader_0.1.2     reticulate_1.18      officer_0.3.17       rhandsontable_0.3.7  R.utils_2.10.1       R.oo_1.24.0         
[15] R.methodsS3_1.8.1    DBI_1.1.1            fst_0.9.4            ISOweek_0.6-2        formattable_0.2.1    foreign_0.8-81       scales_1.1.1        
[22] digest_0.6.27        htmlwidgets_1.5.3    RgoogleMaps_1.4.5.3  sp_1.4-5             leaflet_2.0.4.1      flexdashboard_0.5.2  plotly_4.9.3        
[29] googleVis_0.6.10     dygraphs_1.1.1.6     readxl_1.3.1         lubridate_1.7.10     xts_0.12.1           zoo_1.8-9            pacman_0.5.1        
[36] flextable_0.6.4      taRifx_1.0.6.2       DT_0.17              data.table_1.14.0    reshape2_1.4.4       forcats_0.5.1        stringr_1.4.0       
[43] purrr_0.3.4          readr_1.4.0          tibble_3.1.0         ggplot2_3.3.3        tidyverse_1.3.0      tidyr_1.1.3          dplyr_1.0.5         
[50] plyr_1.8.6           shiny.i18n_0.2.0     shinyjqui_0.4.0      shinyTime_1.0.1      shinyWidgets_0.6.0   shinyjs_1.1          shinydashboard_0.7.1
[57] shinyBS_0.61         shiny_1.6.0         

loaded via a namespace (and not attached):
 [1] uuid_0.1-4        backports_1.2.1   systemfonts_1.0.1 lazyeval_0.2.2    crosstalk_1.1.1   htmltools_0.5.1.1 fansi_0.4.2       memoise_2.0.0    
 [9] remotes_2.2.0     modelr_0.1.8      askpass_1.1       prettyunits_1.1.1 colorspace_2.0-0  blob_1.2.1        rappdirs_0.3.3    rvest_1.0.0      
[17] haven_2.3.1       xfun_0.22         callr_3.5.1       crayon_1.4.1      jsonlite_1.7.2    glue_1.4.2        gtable_0.3.0      pkgbuild_1.2.0   
[25] Rcpp_1.0.6        viridisLite_0.3.0 xtable_1.8-4      bit_4.0.4         httr_1.4.2        ellipsis_0.3.1    pkgconfig_2.0.3   sass_0.3.1       
[33] dbplyr_2.1.0      utf8_1.2.1        tidyselect_1.1.0  rlang_0.4.10      later_1.1.0.1     munsell_0.5.0     cellranger_1.1.0  tools_4.0.4      
[41] cachem_1.0.4      cli_2.3.1         generics_0.1.0    broom_0.7.5       evaluate_0.14     fastmap_1.1.0     yaml_2.2.1        bit64_4.0.5      
[49] processx_3.4.5    knitr_1.31        fs_1.5.0          zip_2.1.1         mime_0.10         AzureGraph_1.2.2  xml2_1.3.2        compiler_4.0.4   
[57] rstudioapi_0.13   curl_4.3          png_0.1-7         testthat_3.0.2    reprex_1.0.0      bslib_0.2.4       stringi_1.5.3     ps_1.6.0         
[65] desc_1.3.0        gdtools_0.2.3     lattice_0.20-41   Matrix_1.3-2      vctrs_0.3.7       pillar_1.5.1      lifecycle_1.0.0   jquerylib_0.1.3  
[73] httpuv_1.5.5      R6_2.5.0          promises_1.2.0.1  sessioninfo_1.1.1 codetools_0.2-18  assertthat_0.2.1  pkgload_1.2.0     openssl_1.4.3    
[81] rprojroot_2.0.2   withr_2.4.1       parallel_4.0.4    hms_1.0.0         AzureAuth_1.3.1   grid_4.0.4        rmarkdown_2.7     base64enc_0.1-3  
[89] tinytex_0.31     

sorry, my bad, it has nothing to do with R versions.
I just need to add in this line:
shinyjs::useShinyjs(),