mirror of
https://github.com/discourse/discourse.git
synced 2025-04-19 09:22:27 +08:00
DEV: Check if show-modal container is viable (#16170)
This commit is contained in:
parent
bb153c49a1
commit
172d030a45
@ -6,6 +6,9 @@ export default function (name, opts) {
|
||||
opts = opts || {};
|
||||
|
||||
let container = getOwner(this);
|
||||
if (container.isDestroying || container.isDestroyed) {
|
||||
return;
|
||||
}
|
||||
|
||||
// We use the container here because modals are like singletons
|
||||
// in Discourse. Only one can be shown with a particular state.
|
||||
|
Loading…
x
Reference in New Issue
Block a user