Opened 8 years ago

Closed 8 years ago

#13895 closed defect (duplicate)

Dialog Placement in DOM

Reported by: jbest Owned by:
Priority: high Milestone: tbd
Component: Dijit Version: 1.6.1
Keywords: Cc:
Blocked By: Blocking:

Description

In postCreate the domNode for a dialog is placed back into the body and not their original parentNode. This can lead to things like ASP.NET controls breaking due to being placed outside of the <form> tag.

Example of original markup:

<body> <form> <div data-dojo-type="dijit.Dialog"><!-- some controls that rely on being in a form --!></div> </form> </body>

After the dialog is created:

<body> <form></form> <div data-dojo-type="dijit.Dialog"><!-- some controls that rely on being in a form --!></div> </body>

Attachments (1)

fix_dialog_placement.patch (2.1 KB) - added by jbest 8 years ago.

Download all attachments as: .zip

Change History (3)

Changed 8 years ago by jbest

Attachment: fix_dialog_placement.patch added

comment:1 Changed 8 years ago by jbest

Added a fix + test.

comment:2 Changed 8 years ago by bill

Resolution: duplicate
Status: newclosed

This is done intentionally, see explanation in duplicate ticket #3300.

Note: See TracTickets for help on using tickets.