Siemens Industrial Experience is a design system for designers and developers, to consistently create the perfect digital experience for industrial software products.
[X] I have not leaked any internal/restricted information like screenshots, videos, code snippets, links etc.
What happened?
I am integrating IX Modal component in React application, Modal is getting open using "showModal" method but as per given in example I am trying to close this but somehow getting exeption.
I have coded like this :
let modalRef = useRef(null);
const dismiss = () => {
try {
modalRef.current.dismiss();
} catch (e) {
}
};
Exception : TypeError: Cannot read properties of null (reading 'id')
What type of frontend framework are you seeing the problem on?
Prerequisites
What happened?
I am integrating IX Modal component in React application, Modal is getting open using "showModal" method but as per given in example I am trying to close this but somehow getting exeption.
I have coded like this : let modalRef = useRef(null);
const dismiss = () => {
try {
modalRef.current.dismiss();
} catch (e) {
}
};
Exception : TypeError: Cannot read properties of null (reading 'id')
What type of frontend framework are you seeing the problem on?
React
Which version of iX do you use?
2.1.2
Code to produce this issue.