When I dismiss the modal via this.modalCtrl.dimiss(undefined, undefined, 'my-id') the bottom most modal with this id will be closed. If I do not specify the id the to most modal will be closed. It would be great if always the top most modal would be closed.
Describe the Use Case
I want to present multiple modals with the same id. When I close an modal by id the top most modal with this id should be closed.
Prerequisites
Describe the Feature Request
Currently you are able to create multiple modals with an id. eg:
When I dismiss the modal via
this.modalCtrl.dimiss(undefined, undefined, 'my-id')
the bottom most modal with this id will be closed. If I do not specify the id the to most modal will be closed. It would be great if always the top most modal would be closed.Describe the Use Case
I want to present multiple modals with the same id. When I close an modal by id the top most modal with this id should be closed.
Describe Preferred Solution
No response
Describe Alternatives
No response
Related Code
see core/src/utils/overlays.ts
change this
into this
Additional Information
No response