Opened 9 years ago

Last modified 4 years ago

#12286 closed defect

ListInput: regExp not validated correctly — at Version 2

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 dante)

The regExp attribute in a dojox.form.ListInput? is validated differently by the ListInput? itself and the underlying ValidationTextBox?.

To reploduce:

  1. Go to http://archive.dojotoolkit.org/nightly/dojotoolkit/dojox/form/tests/test_ListInput.html
  2. Open the tab "Demo 6".
  3. Enter any string containing at least one digit.
  4. The ValidationTextBox? indicates that the value is invalid (correct)
  5. Press enter to add the item.
  6. 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 (2)

comment:1 Changed 9 years ago by FreddeFisk

Whops, forgot to preview...

The problem is that the ListInput?? doesn't add ^$ around the regexp as the ValidationTextBox?? does.

comment:2 Changed 9 years ago by dante

Description: modified (diff)
Milestone: tbdfuture

haven't looked at the code, but the test is broken.

Note: See TracTickets for help on using tickets.