Skip to content

Commit

Permalink
fix(pat relateditems): Do not auto-close upload dropdown when clickin…
Browse files Browse the repository at this point in the history
…g "browse" button.
  • Loading branch information
petschki committed Sep 27, 2023
1 parent e88195d commit cd30774
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 cd30774

Please sign in to comment.