New answers tagged

0

In the above code you are referring to parentelement at two places. var parentId = document.getElementById(ev.target.id).parentElement.id; and var x = document.getElementById('drag1').parentElement.id; In one of these statements the object on which you are referring this property is null. Most probably the second statement. I do not see how you are creating ...


2

For performance reasons, you should load all your scripts and styles at once, as below. loadScripts() { Promise.all([ loadScript(this, jQuery_3_6_0), loadStyle(this, jQuery_ui_1_12_1 + '/jquery-ui.min.css'), loadScript(this, jQuery_ui_1_12_1 + '/jquery-ui.min.js') ]).then((results) => { this.scriptsLoaded = true; ...


Top 50 recent answers are included