Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#11662 closed defect (fixed)

[FilteringSelect] highlight any substring

Reported by: dafoo Owned by: Douglas Hays
Priority: high Milestone: 1.6
Component: Dijit - Form Version: 1.5
Keywords: Cc:
Blocked By: Blocking:

Description

When searching by input in a FilteringSelect/Combobox?, the found substring should be highlighted - no matter if the substring is at the beginning of a word or not.

For example i have a FilteringSelect? with:

:queryExpr => "*${0}*", :labelType => "text", :highlightMatch => "all", :ignoreCase => "true",

... the list contains:

  • Chicago
  • Boston
  • Berlin

When I search for "Be", Berlin will stay in the result-list and Be will be highlighted. I am fine with that.

When I type "er", Berlin will stay in the result-list, but "er" is not highlighted.

Attachments (1)

dijit_fs_bug.html (1.5 KB) - added by dafoo 9 years ago.
testcase

Download all attachments as: .zip

Change History (5)

Changed 9 years ago by dafoo

Attachment: dijit_fs_bug.html added

testcase

comment:1 Changed 9 years ago by bill

Owner: set to Douglas Hays

comment:2 Changed 9 years ago by Douglas Hays

Milestone: tbd1.6

comment:3 Changed 9 years ago by Douglas Hays

Resolution: fixed
Status: newclosed

(In [22798]) Fixes #11662. Changed doHighlight to not assume anything about queryExpr, and to use the ignoreCase flag, and added an automated test.

comment:4 Changed 8 years ago by bill

Component: DijitDijit - Form
Note: See TracTickets for help on using tickets.