Uncaught TypeError: Cannot read property 'parentNode' of null

Uncaught TypeError: Cannot read property ‘parentNode’ of null

this._viewobj==null

	//because we using non-standard rendering model, custom logic for mouse detection need to be used
	_mouseEvent:function(e,hash,name,pair){
		e=e||event;
		var trg=e.target||e.srcElement;
		if (this._settings.subview && this != webix.$$(trg)) return;

		//define some vars, which will be used below
		var css = '',
			css_call = [],
			found = false,
			id = null, 
			res,
			trg=e.target||e.srcElement;

		//loop through all parents
		while (trg && trg.parentNode && trg != this._viewobj.parentNode){

Ошибка возникает периодически после закрытия всплывающего окна, которое создаётся вот так:

{
        id: win_id + control_id,
        modal: true,
        view: "window",
        move: true,
        head: {
            view: "toolbar", cols: [
                { view: "label", label: '', id: head_id + control_id },
                {
                    view: "icon", icon: "times-circle", click: function () {
                        webix.$$(win_id + control_id).destructor();
                    }
                }
            ]
        },
        position: "center",
        body: body,
        on: {

Здравствуйте! Подскажите, какую версию библиотеки вы используете? В новейшей (4.3.3) мы не смогли воспроизвести проблему.

у меня тоже была такая проблема. решил посредством webix.delay

var win = $$(id);
webix.delay(win.close, win);

Listopad, О! У нас версия ещё 3.4 Буду обновлять.

intregal, спасибо, попробую, если обновление не спасёт.

тут весь ФВ нуждается в таких затычках. разрабы не осилили в многопоточность и асинхронность. работает как будто перешел с пхп или питона на яву/яваскрипт, но промисы и колбэки не смог