DT::datatable clearing default filters
<p>I would like to put default filters on a <code>DT::datatable</code> in a shiny application.  I'm able to get the default filters in place, but removing the filters is not behaving as I would expect.</p>

<h2>Example 1</h2>

<p>An example of a datatable with no filters:</p>

<pre><code>library(shiny)
library(DT)

shinyApp(
  ui =
    fluidPage(
      DT::dataTableOutput("mtcars")
    ),

  server =
    shinyServer(function(input, output, session){
      output$mtcars &lt;- 
        DT::renderDataTable({
          mtcars$gear &lt;- factor(as.character(mtcars$gear))
          datatable(
            data = mtcars,
            filter = "top",
            options = 
              list(
                pageLength = 50
              )
          )
        })
    })
)
</code></pre>

<p>Notice that in this example, when you manually select "3" under the <code>gear</code> column, a little gray box appears that let's you know "3" is selected.</p>

<p><a href="https://i.stack.imgur.com/wg8sm.png" rel="noreferrer"><img src="https://i.stack.imgur.com/wg8sm.png" alt="enter image description here"></a></p>

<p>Then, when you are out of the filter selection, there is a little x in a circle that lets you clear the filter.</p>

<p><a href="https://i.stack.imgur.com/IzFya.png" rel="noreferrer"><img src="https://i.stack.imgur.com/IzFya.png" alt="enter image description here"></a></p>

<h2>Example 2</h2>

<p>In this example, I've preloaded "3" into the filter when the datatable loads.</p>

<pre><code>shinyApp(
  ui =
    fluidPage(
      DT::dataTableOutput("mtcars")
    ),

  server =
    shinyServer(function(input, output, session){
      output$mtcars &lt;- 
        DT::renderDataTable({
          mtcars$gear &lt;- factor(as.character(mtcars$gear))
          datatable(
            data = mtcars,
            filter = "top",
            options = 
              list(
                pageLength = 50,
                searchCols = list(NULL, NULL, NULL, NULL,
                                  NULL, NULL, NULL, NULL,
                                  NULL, NULL, list(search = '["3"]'), NULL)
              )
          )
        })
    })
)
</code></pre>

<p>Notice that the filter box doesn't have the x in a circle to clear out the filter.  If I click in the box and click out without making changes, the circle will appear, but will take no action when clicked.  The only way to clear the filter is to select a value and then clear out the values as I would if I hadn't preloaded the filters.</p>

<p><a href="https://i.stack.imgur.com/T5dsE.png" rel="noreferrer"><img src="https://i.stack.imgur.com/T5dsE.png" alt="enter image description here"></a></p>

<p>Anyone else had this problem before?</p>

<p>EDIT: Hopefully this really cheesy imagery helps clarify the discrepancy between the two.  I'm using DT version 0.1.57 (most recent on GitHub)</p>

<p><a href="https://i.stack.imgur.com/Ew4L6.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Ew4L6.png" alt="enter image description here"></a></p>