kevcjones / ngx-simple-modal

A simple unopinionated framework to implement simple modal based behaviour in angular (v2+) projects.
MIT License
52 stars 27 forks source link

Getting Cannot read properties of undefined (reading 'split') on modal close #79

Closed Suraj-Gupta-ML closed 2 years ago

Suraj-Gupta-ML commented 2 years ago

Hi @KevCJones , I am getting below error while closing the modal.

ERROR TypeError: Cannot read properties of undefined (reading 'split') at SimpleModalHolderComponent.toggleWrapperClass (ngx-simple-modal.js:390) at SimpleModalHolderComponent.removeModal (ngx-simple-modal.js:319) at AddComponentComponent.closerCallback (ngx-simple-modal.js:304) at AddComponentComponent.close (ngx-simple-modal.js:668)

Thanks!!

kevcjones-archived commented 2 years ago

Can you demonstrate the issue in a small project. Perhaps using stackblitz or similar and link it here?

Suraj-Gupta-ML commented 2 years ago

Hi , i fixed it. Due to some name conflicts the error came up.