Skip to content

Commit

Permalink
Merge pull request #1344 from plone/petschki-relateditems-upload
Browse files Browse the repository at this point in the history
Do not close upload dropdown in `pat-relateditems` when clicking "browse" button
  • Loading branch information
petschki authored Sep 28, 2023
2 parents e88195d + cd30774 commit e6e58d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
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>
<% } %>

0 comments on commit e6e58d2

Please sign in to comment.