title: R shinyjs disable function not working in module that takes input from another module
body: <p>Below code is a minimum example of what I'm building in a larger app and I can't figure out why the <code>textInput</code> in <code>output_module.R</code> is not disabled. Would be very grateful if anyone can help!</p>
  <p><strong>app.R</strong></p>
  <pre><code>library(shiny)
  library(shinyjs)
  
  # Define UI
  ui &lt;- fluidPage(
      
      useShinyjs(),
  
      # Application title
      titlePanel(&quot;Demo&quot;),
  
      # Sidebar 
      sidebarLayout(
          sidebarPanel(
              input_module_ui(&quot;input&quot;)
          ),
  
          mainPanel(
              output_module_ui(&quot;output&quot;)
          )
      )
  )
  
  # Define server logic 
  server &lt;- function(input, output, session) {
      
      callModule(input_module_server, &quot;input&quot;)
      res &lt;- callModule(input_module_server, &quot;input&quot;)
      
      callModule(output_module_server, &quot;output&quot;, res)
      
  }
  
  # Run the application 
  shinyApp(ui = ui, server = server)
  </code></pre>
  <p><strong>input_module.R</strong></p>
  <pre><code>#Define ui
  input_module_ui &lt;- function(id) {
    ns &lt;- NS(id)
    
    tagList(
      textInput(
        inputId = ns(&quot;input&quot;),
        label = &quot;Input:&quot;,
        value = &quot;A&quot;
        )
      )
  }
  
  #Define server logic 
  input_module_server &lt;- function(input, output, session) {
    
    #List of things to return for use in other modules
    return(input)
    
  }
  </code></pre>
  <p><strong>output_module.R</strong></p>
  <pre><code>#Define ui
  output_module_ui &lt;- function(id){
    ns &lt;- NS(id)
  
    tagList(
          textInput(inputId = ns(&quot;output&quot;),
                       label = &quot;Output:&quot;, 
                       value = &quot;&quot;
                    )
        )
  }
  
  #Define server logic 
  output_module_server &lt;-
    function(input,
             output,
             session,
             module_input) {
  
      observe({
        
        output &lt;- module_input$input
        updateTextInput(session, &quot;output&quot;, value = output)
        disable(id = session$ns(&quot;output&quot;))
        
      })
    }
  </code></pre>