siemens / ix

Siemens Industrial Experience is a design system for designers and developers, to consistently create the perfect digital experience for industrial software products.
https://ix.siemens.io/
MIT License
174 stars 62 forks source link

Unhandled expection in ix-tooltip #1329

Closed TDaniel-evo closed 1 week ago

TDaniel-evo commented 2 weeks ago

Prerequisites

What happened?

I did not confirmed this but my best guess is that when an ix-tooltip's anchor element can not be found then the error is not handled.

Error: Uncaught (in promise): TypeError: Cannot read properties of undefined (reading 'forEach') TypeError: Cannot read properties of undefined (reading 'forEach') at ix-tooltip.entry.js:203:28 at Generator.next () at asyncGeneratorStep (asyncToGenerator.js:3:24) at _next (asyncToGenerator.js:22:9) at _ZoneDelegate.invoke (zone.js:368:26) at Object.onInvoke (core.mjs:26259:33) at _ZoneDelegate.invoke (zone.js:367:52) at Zone.run (zone.js:129:43) at zone.js:1257:36 at _ZoneDelegate.invokeTask (zone.js:402:31) at resolvePromise (zone.js:1193:31) at zone.js:1100:17 at zone.js:1116:33 at asyncGeneratorStep (asyncToGenerator.js:6:5) at _next (asyncToGenerator.js:22:9) at _ZoneDelegate.invoke (zone.js:368:26) at Object.onInvoke (core.mjs:26259:33) at _ZoneDelegate.invoke (zone.js:367:52) at Zone.run (zone.js:129:43) at zone.js:1257:36

What type of frontend framework are you seeing the problem on?

Angular

Which version of iX do you use?

v2.2.1

Code to produce this issue.

<ix-tooltip for=".not-existing-element-or-not-valid-selector">Text</ix-tooltip>
danielleroux commented 1 week ago

This is already addressed by https://github.com/siemens/ix/pull/1251. Will will close this one here.