Opened 11 years ago

Closed 11 years ago

Last modified 9 years ago

#9031 closed defect (fixed)

dijit validate() error when a validationtextbox is hidden

Reported by: remmons Owned by:
Priority: high Milestone: 1.3
Component: Dijit - Form Version: 1.2.3
Keywords: Cc:
Blocked By: Blocking:

Description

  1. A ValidationTextBox? with a regular expression is loaded with a default value.
  2. The default value does not match the regular expression.
  3. On page load, the textbox is hidden in an accordion view.
  4. If the hidden textbox with the invalid data is never displayed to the user, the dijit.byId(formName).validate() function gives the following javascript error:

"_236 is undefined"

Change History (5)

comment:1 Changed 11 years ago by bill

You'll need to attach a test case using the "Attach file" button.

comment:3 Changed 11 years ago by remmons

I just deployed 1.3 and this problem has been fixed!

(release note) Fixed initialization of layout widgets in hidden panes (ex: unselected tabs, dialogs, closed accordion panes, etc.) Originally had planned to do this by using visibility:hidden instead of display:none but IE had unresolvable issues, so instead implemented by making ContentPane? act like a layout widget, i.e., by calling resize() on each of it's children when the ContentPane? is made visible.

comment:4 Changed 11 years ago by dante

Milestone: tbd1.3
Resolution: fixed
Status: newclosed

sweet! thanks for the followup.

comment:5 Changed 9 years ago by bill

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