chore: stop show if already open

This commit is contained in:
Miodec 2024-03-12 15:34:51 +01:00
parent e1878b91d2
commit 3f2cfca361

View file

@ -137,6 +137,7 @@ export default class AnimatedModal {
async show(options?: ShowHideOptions): Promise<void> {
// eslint-disable-next-line no-async-promise-executor
return new Promise(async (resolve) => {
if (this.open) return resolve();
Skeleton.append(this.wrapperId, this.skeletonAppendParent);
if (!this.setupRan) {