Opened 11 years ago

Closed 11 years ago

#12807 closed defect (invalid)

Content problems with user-defined widget descending from ContentPane and _Templated

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


1.6.1 actually. When I extend a class from ContentPane? and add _Templated and give it a template with embedded content (ed. <div>stuff</div>), then when I embedded the user-defined tag in another template (eg. <div data-dojo-type="WidgetFromContentPane?"></div>) then it does not include the content from the WidgetFromContentPane?.

The problem seems to be in ContentPane?.create() as "params.template" is set to false because it is coming from a BorderContainer? (which does not set params.template=true) and not a _Templated class. This causes ContentPane? to load a document fragment into its "content" attribute and ends up clearing out the domNode attribute.

I found the workaround is probably the better practice and that is to not use ContentPane? when you only need to use _Widget. If this sounds like something that needs fixing, then I will supply a file.

Change History (3)

comment:1 Changed 11 years ago by Adam Peller

Component: GeneralDijit

comment:2 Changed 11 years ago by bill

Hmm, it's hard to follow that description but I would like to see a test case, thanks.

comment:3 Changed 11 years ago by bill

Resolution: invalid
Status: newclosed

Closing because no test case, please reopen if you have one.

Note: See TracTickets for help on using tickets.