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 24a77e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 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
4 changes: 2 additions & 2 deletions src/pat/relateditems/templates/toolbar.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@

<% 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">
<ul class="dropdown-menu p-2">
<div class="pat-upload"></div>
</ul>
</div>
Expand Down

0 comments on commit 24a77e1

Please sign in to comment.