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
210 stars 67 forks source link

iX service initialization #1501

Open szreka24 opened 1 month ago

szreka24 commented 1 month ago

Prerequisites

What happened?

The Angular application throws a TypeError: dialogRef.showModal is not a function during the initialization process.

The error: message: "dialogRef.showModal is not a function" stack: "TypeError: dialogRef.showModal is not a function"

  1. Initialize the Angular application.
  2. Use the iX library's dialog functionality to show a modal.
  3. Observe the error in the browser console.

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

Angular

Which version of iX do you use?

v2.3.0

Code to produce this issue.

I tried to replicate the problem, but unfortunately I couldn't. 
However, it might still be a good starting point: https://stackblitz.com/edit/ne22aj-bdgl4h

Note: I managed to resolve the issue using setTimeout(() => this.openModal(), 100), which suggests it might be a timing problem.
github-actions[bot] commented 1 month ago

Thank you for creating this issue! It has been labeled as needs reproduction.

To help us assist you better, could you please provide a way for us to access the code (such as a GitHub repository or a StackBlitz link). Without a reliable code reproduction, it might be challenging for us to resolve the issue, and we may have to close it. Thank you for your understanding!