title: editable DT inside shiny module
body: <p>I would like to have an editable DT inside a shiny module. When I change a value in the DT, then the table updates and it is empty with the message inside the datatable:</p>
  
  <p>"No matching records found"</p>
  
  <p>My code is as follows:</p>
  
  <p>Modules:</p>
  
  <pre><code>modDtUi &lt;- function(id){ # UI module
    ns = NS(id)
    DT::dataTableOutput(ns('x1'))
  } 
  
  
  modDt &lt;-  function(input, output, session, data){ # Server module
  
    x &lt;- data
    output$x1 &lt;- DT::renderDataTable(x, selection = 'none', editable = TRUE)
  
    proxy &lt;- dataTableProxy('x1', session = session)
  
    observeEvent(input$x1_cell_edit, {
      info = input$x1_cell_edit
      str(info)
      print(info)
      i = info$row
      j = info$col
      v = info$value
      x[i, j] &lt;&lt;- DT::coerceValue(v, x[i, j])
      replaceData(proxy, x, resetPaging = FALSE, rownames = FALSE)
    })
  
  }
  </code></pre>
  
  <p>app in flexdashboard:</p>
  
  <pre><code>```{r}
  modDtUi("editable")
  ```
  
  ```{r}
  callModule(modDt,"editable", data = iris)
  ```
  </code></pre>
  
  <p>It works well without modules, but I can't get the same results with shiny modules. </p>
  
  <p>Thanks</p>