jQWidgets Forums
jQuery UI Widgets › Forums › Angular › Issue with jqWidgets 5.3.2 on IE11: TypeError: Argument not optional
This topic contains 5 replies, has 2 voices, and was last updated by Peter Stoev 7 years, 7 months ago.
-
Author
-
September 26, 2017 at 1:17 pm Issue with jqWidgets 5.3.2 on IE11: TypeError: Argument not optional #96324
Hello,
I updated jqWidgets from 4.6.4 to 5.3.2, and now jqWidgets give strange error on IE:
“TypeError: Argument not optional
at jqxLoaderComponent.prototype.moveClasses (http://localhost:4200/vendor.bundle.js:6322:10)
at jqxLoaderComponent.prototype.createComponent (http://localhost:4200/vendor.bundle.js:6339:9)
at jqxLoaderComponent.prototype.ngOnInit (http://localhost:4200/vendor.bundle.js:6272:13)
at checkAndUpdateDirectiveInline (http://localhost:4200/vendor.bundle.js:80628:9)
at checkAndUpdateNodeInline (http://localhost:4200/vendor.bundle.js:82128:13)
at checkAndUpdateNode (http://localhost:4200/vendor.bundle.js:82068:9)
at debugCheckAndUpdateNode (http://localhost:4200/vendor.bundle.js:82932:5)
at debugCheckDirectivesFn (http://localhost:4200/vendor.bundle.js:82873:13)
at Anonymous function (Function code:40:9)
at debugUpdateDirectives (http://localhost:4200/vendor.bundle.js:82858:5)”This occurs four times on pageload.
I have multiple jqWidgets in the page.
The error seems to be in createComponent (this I confirmed taking jqxLoader off, one of the error messages disappeared).Any ideas, where should I start looking? Page is doing fine in other browsers, and no any error messages in console. Also in jqWidgets version 4.6.4 everything is working fine also on IE.
September 26, 2017 at 1:22 pm Issue with jqWidgets 5.3.2 on IE11: TypeError: Argument not optional #96327From this message, you probably use a method without passing arguments to it and arguments are required in this version.
September 26, 2017 at 1:34 pm Issue with jqWidgets 5.3.2 on IE11: TypeError: Argument not optional #96328Error is occurring on pageload, and I use auto-create of jqWidgets, so I’m not calling the createComponent myself. And how could it be working on other browsers?
September 26, 2017 at 1:48 pm Issue with jqWidgets 5.3.2 on IE11: TypeError: Argument not optional #96330I changed each of the components moveClasses from:
moveClasses(parentEl: HTMLElement, childEl: HTMLElement): void {
let classes: any = parentEl.classList;
childEl.classList.add(…classes);
parentEl.className = ”;
}to:
moveClasses(parentEl: HTMLElement, childEl: HTMLElement): void {
let classes: any = parentEl.classList;
if (classes.length > 0) {
childEl.classList.add(…classes);
}
parentEl.className = ”;
}And now its working. Should this be on some update?
October 24, 2017 at 1:34 pm Issue with jqWidgets 5.3.2 on IE11: TypeError: Argument not optional #96899Are there any updates for this? Is jqWidgets possibly fixing this error with some upcoming update?
October 24, 2017 at 2:00 pm Issue with jqWidgets 5.3.2 on IE11: TypeError: Argument not optional #96901There is no such issue in current version of our Angular components.
-
AuthorPosts
You must be logged in to reply to this topic.