Upgraded dialogs to use afterRender to setup the bootstrap modal instead of ready to avoid race conditions.

This commit is contained in:
MattMo committed 2024-03-18 09:33:50 -07:00
1 parent a0e8d517c4
commit 270a5fbabf
3 files changed
+7 -3

No files matched your search

+1 -1
View File
@@ -34,7 +34,7 @@ class Modal extends IgniteElement {
)
}
ready() {
afterRender() {
this.modalInstance = new bootstrap.Modal(this.modal, { backdrop: this.backdropClose ? "true" : "static" });
}
+3 -1
View File
@@ -53,9 +53,11 @@ class OkDialog extends IgniteElement {
)
}
ready() {
afterRender() {
this.modal = new bootstrap.Modal(this.modalElement, { backdrop: "static" });
}
ready() {
if (this.autoOpen) {
this.open();
}
+3 -1
View File
@@ -63,9 +63,11 @@ class YesNoDialog extends IgniteElement {
)
}
ready() {
afterRender() {
this.modal = new bootstrap.Modal(this.modalElement, { backdrop: "static" });
}
ready() {
if (this.autoOpen) {
this.open();
}