#7150 closed defect (duplicate)
FilteringSelect: problem with \(backslash)
Reported by: | fms | Owned by: | |
---|---|---|---|
Priority: | high | Milestone: | tbd |
Component: | Dijit - Form | Version: | 1.1.1 |
Keywords: | FilteringSelect backslash | Cc: | |
Blocked By: | Blocking: |
Description
When selecting an item that contains a '\'(backslash) from FilteringSelect?, 'The value entered is not valid' is shown even though it is valid.
In 1.1.1, the problem occurs with FilteringSelect?, and a data store other than dijit.form._ComboBoxDataStore(default), such as dojo.data.ItemFileReadStore?.
dijit.form._ComboBoxDataStore escapes meta characters of RegExp?() on its own, whereas other data stores use dojo.data.util.filter.patternToRegExp() instead.
In trunk(r14389), the problem occurs with FilteringSelect? and any data store, including dijit.form._ComboBoxDataStore.
In the changeset r14220, dijit.form._ComboBoxDataStore has been fixed to escape meta characters using dojo.data.util.filter.patternToRegExp() just like other data stores, making the same problem to occur in dijit.form._ComboBoxDataStore as well.
Since '\' is a meta character of dojo.data.util.filter.patternToRegExp(), '\'s in the label of FilteringSelect? must be escaped.
Sample patches to both revisions are attached.
Regards,
Change History (3)
comment:1 Changed 13 years ago by
comment:2 Changed 13 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
comment:3 Changed 10 years ago by
Component: | Dijit → Dijit - Form |
---|
I inadvertently created a duplicate ticket. This defect is the same as the ticket #7151, so please delete this defect (#7150).