Opened 11 years ago
Closed 7 years ago
#12286 closed defect (worksforme)
ListInput: regExp not validated correctly
Reported by: | FreddeFisk | Owned by: | dante |
---|---|---|---|
Priority: | high | Milestone: | 1.11 |
Component: | DojoX Form | Version: | 1.6.0b1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description (last modified by )
The regExp attribute in a dojox.form.ListInput? is validated differently by the ListInput? itself and the underlying ValidationTextBox?.
To reploduce:
- Go to http://archive.dojotoolkit.org/nightly/dojotoolkit/dojox/form/tests/test_ListInput.html
- Open the tab "Demo 6".
- Enter any string containing at least one digit.
- The ValidationTextBox? indicates that the value is invalid (correct)
- Press enter to add the item.
- The validation done by ListInput? indicates that the value is valid (wrong)
The problem is that the ListInput? doesn't add ^$
around the regexp as the ValidationTextBox? does.
Change History (4)
comment:1 Changed 11 years ago by
comment:2 Changed 11 years ago by
Description: | modified (diff) |
---|---|
Milestone: | tbd → future |
haven't looked at the code, but the test is broken.
comment:3 Changed 11 years ago by
comment:4 Changed 7 years ago by
Milestone: | future → 1.11 |
---|---|
Resolution: | → worksforme |
Status: | new → closed |
This seems to be working for me today.
Note: See
TracTickets for help on using
tickets.
Whops, forgot to preview...
The problem is that the ListInput?? doesn't add ^$ around the regexp as the ValidationTextBox?? does.