Enterprise: Datagrid search is failing when special characters like &, %, # etc with space entered in the seach toolbar

Created on 10 Sep 2018  路  3Comments  路  Source: infor-design/enterprise

Describe the bug
Searching in datagrid does not work when using & with spaces.

To Reproduce
Steps to reproduce the behavior:

  1. Edit the data on example-keyword-search to include a & in the data in the activity column fix activity: 'Assemble & Paint'
  2. Go to http://localhost:4000/components/datagrid/example-keyword-search.html
  3. Click on search icon
  4. Type "Assemble & Paint"
  5. note that no results are found.

Expected behavior
If a data grid data has columns with the specified text with the special characters should show those rows.

Screenshots
If applicable, add screenshots to help explain your problem.
datgrid_search_bug

Platform
All

Additional context
Seems to work with just "Assemble &" but not with a trailing space after.

[3] type

All 3 comments

I made some testing for #, &, and % (with a trailing space), and it seems that the really issue is the &.

See attached.

img-data
img1-
img2-
img3-

And also noticed that the highlightSearcRows isn't working on &.

Was this page helpful?
0 / 5 - 0 ratings