Commit 68070166 authored by JC Brand's avatar JC Brand

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

parent 3f47c4d3
......@@ -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');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment