Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not close upload dropdown in pat-relateditems when clicking "browse" button #1344

Merged
merged 1 commit into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/pat/relateditems/relateditems.js
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,6 @@ export default Base.extend({
data.push.apply(data, e.results);
this.$el.select2("data", data, true);
this.emit("selected");
this.popover.hide();
},
false
);
Expand Down
6 changes: 3 additions & 3 deletions src/pat/relateditems/templates/toolbar.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@

<% if (upload) { %>
<div class="upload dropdown dropdown-menu-end ms-2">
<button type="button" class="upload dropdown-toggle btn btn-primary btn-sm" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<button type="button" class="upload dropdown-toggle btn btn-primary btn-sm" data-bs-toggle="dropdown" data-bs-auto-close="false" aria-haspopup="true" aria-expanded="false">
<%= icon_upload %>
<%- upload_text %>
<span class="caret"/>
</button>
<ul class="dropdown-menu">
<div class="dropdown-menu p-2">
<div class="pat-upload"></div>
</ul>
</div>
</div>
<% } %>