plwalters / aurelia-bs-modal

DEPRECATED - Aurelia plugin for bootstrap modal
MIT License
17 stars 16 forks source link

Showing property and binding problem when modal closed by backdrop #8

Open valichek opened 9 years ago

valichek commented 9 years ago

When the modal is hidden with backdrop, showing property stay true, so it couldn't be triggered next time even if you handle modal event

$(this.modal).on('hidden.bs.modal', (e) => {
      this.showing = false;
    })

but it won't help, because of further bindings I think the best way is to make show/hide methods and call them using ref Smth like that

<button click.delegate="myModal.myMethod()">
<modal modal.ref="myModal"></my-component>

But I didn't check that yet