diff --git a/app/views/stash_engine/tenant_admin/_logo.html.erb b/app/views/stash_engine/tenant_admin/_logo.html.erb
index 700312ba0b..25021b030b 100644
--- a/app/views/stash_engine/tenant_admin/_logo.html.erb
+++ b/app/views/stash_engine/tenant_admin/_logo.html.erb
@@ -10,6 +10,6 @@
<% end %>
+
<%= form.hidden_field :logo, value: @tenant.logo, id: 'logo_input' %>
diff --git a/app/views/stash_engine/tenant_admin/edit.js.erb b/app/views/stash_engine/tenant_admin/edit.js.erb
index a4cf7dd887..ef51e29fb7 100644
--- a/app/views/stash_engine/tenant_admin/edit.js.erb
+++ b/app/views/stash_engine/tenant_admin/edit.js.erb
@@ -14,5 +14,5 @@ when 'ror_orgs'
when 'logo'
@tenant.logo.blank? ? '' : "
".html_safe
end %>";
-document.getElementById('<%= @field %>_button').setAttribute('aria-expanded', 'false');
+document.getElementById('<%= @field %>_button_<%= @tenant.id %>').setAttribute('aria-expanded', 'false');
document.getElementById('genericModalDialog').close();
\ No newline at end of file
diff --git a/app/views/stash_engine/tenant_admin/popup.js.erb b/app/views/stash_engine/tenant_admin/popup.js.erb
index 34548784a9..39f84c113e 100644
--- a/app/views/stash_engine/tenant_admin/popup.js.erb
+++ b/app/views/stash_engine/tenant_admin/popup.js.erb
@@ -16,7 +16,7 @@ document.getElementById('file-select').addEventListener('change', () => {
const reader = new FileReader();
reader.addEventListener('load', () => {
document.getElementById('logo_input').value = reader.result;
- document.getElementById('file-preview').innerHTML = `
`;
+ document.getElementById('file-preview').innerHTML = `
`;
});
if (file) {
reader.readAsDataURL(file);
diff --git a/spec/features/stash_engine/tenant_admin_spec.rb b/spec/features/stash_engine/tenant_admin_spec.rb
index 03b3225ac8..ae6211e4e5 100644
--- a/spec/features/stash_engine/tenant_admin_spec.rb
+++ b/spec/features/stash_engine/tenant_admin_spec.rb
@@ -25,7 +25,7 @@
expect(page).not_to have_content(@match.short_name)
end
- xit 'allows changing the logo as a superuser', js: true do
+ it 'allows changing the logo as a superuser', js: true do
visit stash_url_helpers.tenant_admin_path
expect(page).to have_content(@match.short_name)
within(:css, "form[action=\"#{tenant_popup_path(id: @match.id, field: 'logo')}\"]") do