maximelafarie / ngx-smart-modal

Modal/Dialog component crafted for Angular (Ivy-compatible)
https://maximelafarie.com/ngx-smart-modal/
MIT License
325 stars 85 forks source link

Cannot read properties of undefined (reading 'focus') #357

Open ginagr opened 1 year ago

ginagr commented 1 year ago

I'm submitting a ...

[x ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, post on Stackoverflow or Gitter

Current behavior Sometimes when closing the modal I get a TypeError in the console. It doesn't crash and the modal hides itself successfully, but ideally there would be no error message.

Expected behavior Modal hides without error message

Reproduction of the problem

What is the motivation / use case for changing the behavior? No error message

Please tell us about your environment: Angular/Typescript project

Screen Shot 2022-10-21 at 3 52 54 PM Screen Shot 2022-10-21 at 3 54 34 PM
ginagr commented 1 year ago

Also sometimes this error pops up as well

Screen Shot 2022-10-21 at 3 56 07 PM