Skip to content

DT treats = (equal sign) as empty string when searching (sever mode) #965

@shrektan

Description

@shrektan

Example Code

library(shiny)
tbl = data.frame(
  COL_WITH_EQ_SIGN = c("<", "<=", "=", "abc=", "abc", "efg", "efg=")
)
ui = fluidPage(
  DT::DTOutput("tbl")
)
server = function(input, output, session) {
  output$tbl = DT::renderDT({
    DT::datatable(
      tbl, options = list(search = list(regrex = FALSE))
    )
  })
}
runApp(list(ui=ui, server=server))

Reproducible Steps

  1. Launch the app
  2. Type abc= in the top-right box to search

You will find the equal sign = doesn't work, but it should.

Screenshot

image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions