Skip to content

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

@ginagr

Description

@ginagr

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

  • Smart Modal version: 0.8.x
    7.4.1

  • Angular version: 2.0.x
    14.2.7

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
    all

  • Language: [all | TypeScript X.X | ES6/7 | ES5]
    all

Screen Shot 2022-10-21 at 3 52 54 PM

Screen Shot 2022-10-21 at 3 54 34 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions