Kaynağa Gözat

Bugfix: Image modal didn't have `src` attr on render

JC Brand 4 yıl önce
ebeveyn
işleme
680701667e
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      src/modals/base.js

+ 2 - 2
src/modals/base.js

@@ -20,11 +20,11 @@ const BaseModal = View.extend({
         if (!this.id) {
             throw new Error("Each modal class must have a unique id attribute");
         }
-        this.render()
-
         // Allow properties to be set via passed in options
         Object.assign(this, options);
 
+        this.render()
+
         this.el.setAttribute('tabindex', '-1');
         this.el.setAttribute('role', 'dialog');
         this.el.setAttribute('aria-hidden', 'true');