Skip to content
Snippets Groups Projects
Verified Commit 8487c2c1 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

BUG: more detailed error catching conditions for bootstrap-select

parent 97d3e42a
No related branches found
No related tags found
2 merge requests!84Release 0.9,!78F dropdown
Pipeline #29166 failed
......@@ -29,14 +29,18 @@
window.addEventListener('error', (e) => globalError(e.error));
var globalError = function (error) {
var stack = error.stack;
// ignore this particular error. It is caused by bootstrap-select which is
// probably misusing the bootstrap 5 API.
if (error.toString().startsWith("TypeError: this._element is undefined")) {
return;
if (error && error.stack)
stack = "" + error.stack;
if (stack.indexOf("dataApiKeydownHandler") > 0) {
return;
}
}
var stack = error.stack;
var message = "Error! Please help to make CaosDB better! Copy this message and send it via email to info@indiscale.com.\n\n";
message += error.toString();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment