Page 1 of 1

Querying unrendered components results in "Cannot read property 'dom' of undefined" error

Posted: Mon Dec 14, 2020 6:13 pm
by paulb

Hi,
when querying unrendered ExtJS components, Siestas query function throws an error.
Can be reproduced (in an ExtJS test) with the following code:

StartTest(function (t) {
	new Ext.button.Button({ foo: true });
	t.is(Ext.ComponentQuery.query('[foo]').length, 1);
	t.query('>> [foo]'); // throws error
});

Could you please look into it and fix it?


Re: Querying unrendered components results in "Cannot read property 'dom' of undefined" error

Posted: Mon Dec 14, 2020 9:53 pm
by pmiklashevich

Thanks for the report! We will address!


Re: Querying unrendered components results in "Cannot read property 'dom' of undefined" error

Posted: Tue Dec 15, 2020 12:01 pm
by nickolay

Fixed in the sources now, you can try it in the tomorrow nightly.


Re: Querying unrendered components results in "Cannot read property 'dom' of undefined" error

Posted: Fri Dec 18, 2020 9:23 am
by paulb

Thanks for the quick fix!
Unfortunately the nightly builds seem broken. It only downloads a 1kb file. Other nightlies (calendar, scheduler) do work.


Re: Querying unrendered components results in "Cannot read property 'dom' of undefined" error

Posted: Fri Dec 18, 2020 10:15 am
by sergey.maltsev

Hi, paulb!

Please tell which package are you trying to download with no success?
I've tried these ones and they are just fine.
scheduler-2020-12-18-release.zip (163 MB)
siesta-standard-2020-12-18.zip (216 MB)


Re: Querying unrendered components results in "Cannot read property 'dom' of undefined" error

Posted: Fri Dec 18, 2020 10:40 am
by paulb

Sorry, I missed that our licence has expired yesterday.