Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error TypeError: "ancestor.contains is not a function" #177

Open
leszekt8007 opened this issue Apr 28, 2020 · 1 comment
Open

Getting error TypeError: "ancestor.contains is not a function" #177

leszekt8007 opened this issue Apr 28, 2020 · 1 comment
Labels
needsinfo Needs more information for action to be taken

Comments

@leszekt8007
Copy link

leszekt8007 commented Apr 28, 2020

Hi, We are getting the following error after migrating from dojo 1.7 to 1.16.2

dojo/parser::parse() error TypeError: "ancestor.contains is not a function"
    isDescendant Dojo
    check dijit/focus.js:58
    Dojo 3
        hitch
        dispatcher
        destroy
    _createDojoDeferredTypes datastage/widget/_DeferredLoadMixIn.js:116
    startup datastage/widget/layout/TabContainer.js:66
    startup dijit/_WidgetsInTemplateMixin.js:101
    forEach Dojo
    startup dijit/_WidgetsInTemplateMixin.js:99
    startup dijit/_WidgetBase.js:573
    forEach Dojo
    startup dijit/_WidgetBase.js:571
    inherited__debug Dojo
    startup dijit/layout/_ContentPaneResizeMixin.js:54
    inherited__debug Dojo
    startup dijit/layout/ContentPane.js:203
    startup dijit/_WidgetBase.js:573
    forEach Dojo
    startup dijit/_WidgetBase.js:571
    inherited__debug Dojo
    startup dijit/layout/_LayoutWidget.js:60
    inherited__debug Dojo
    startup dijit/layout/LayoutContainer.js:58
    startup dijit/_WidgetsInTemplateMixin.js:101
    forEach Dojo
    startup dijit/_WidgetsInTemplateMixin.js:99
    Dojo 14
        onConstruct
        forEach
        onConstruct
        signalListener
        then
        _instantiate
        p
        signalListener
        then
        parse
        hitch
        onEvent
        processQ
        detectReady
dojo/parser.js:900:14
    Dojo 9

It looks like a widget is passed to isDescendant() while the only accepted values are DOM ID string or a DOM node.
See the discussion in the issue that we have opened regarding. isDescendant function.
dojo/dojo#375

@msssk
Copy link
Contributor

msssk commented Apr 28, 2020

@leszekt8007 Thank you for reporting this. If you are able to provide a test case it will be a big help in debugging this.

@msssk msssk added the needsinfo Needs more information for action to be taken label Apr 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needsinfo Needs more information for action to be taken
Projects
None yet
Development

No branches or pull requests

2 participants