I have created one picker in sencha touch.
Then added into viewport like this:
Ext.Viewport.add(picker);
picker.show();
Then when I try to remove it from viewport it is throwing js error in console. code is:
Ext.Viewport.remove(picker, true);
Cannot read property 'dom' of null in Container.js
Ext.Viewport.remove(picker, true);
You need to put above code in defer as below. It requires at least more delay.
Ext.defer(function(){
Ext.Viewport.remove(picker, false);
}, 500);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.