Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.
This repository was archived by the owner on May 29, 2019. It is now read-only.

Modal result promise is resolved prior to animations completing when closing the modal #3057

Closed
@nauticalcoder

Description

@nauticalcoder

Angular version: 1.2.16
Angular Bootstrap version: 0.12.0
Bootstrap version: 3.1.1
http://plnkr.co/edit/xNCeqlj9cXKjTtQOSoiN

I am trying to have a message box display after the modal is closed. The code for opening the message box is in the result promise handler. When close is called on the modal instance, the message box is displaying, then once the message box is closed, the modal is closing. After investigating, the issue appears to be related to the close animation. I have included a proposed fix for this issue that involves moving the promise resolution so it happens once the animation is complete.
Pull request a proposed solution:
#3056

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions