dwmkerr / angular-modal-service

Modal service for AngularJS - supports creating popups and modals via a service.
MIT License
626 stars 321 forks source link

null is not an object (evaluating 'r.resolve') #260

Open klusinyan opened 5 years ago

klusinyan commented 5 years ago

Versione 0.15.1 (tried also on 0.14.x) Hi, I'm facing the following issue when try to show two modals in sequence. I tried to debug to see what happens bu no result. The error comes out randomly, seems due to some delay in source code, but can not find any solution unfortunately.

This is my sequence.

  1. Show the first modal, on button click I call close()
  2. Show the second modal after close(), also I tired to do after some delay.
  3. I see the following error:

The error:

null is not an object (evaluating 'r.resolve') http://localhost:3000/node_modules/angular-modal-service/dst/angular-modal-service.min.js:1

Please, tell me if you have any suggestion. Tell me please also, if there is, the right way to show 2 modals in sequence.

Thanks, Karen