I have two custom widgets created with dojo, widgetA and widgetB.
Loading widgetB from within widgetA (widgetA contains widgetB), then dom.byID("id") or query("#id") returns nothing on the child widget.
Same happens when loading widgetB from widget A. Note, that when instantiating each widget separately (not nested), both functions work as expected.
Is this a dojo problem?
in postCreate:
var button = domConstruct.create("button", { innerHTML: "my button", id: "btnSelect" }, "placeholder");
when nesting the widgets it cannot find the "placeholder" element.
The html
<div id="placeholder"></div>