Allow event propagation to fix turbo frame update (#575)

* Allow event propagation to fix turbo frame update

* Add setting to dropdown to manage close when open and clicking on it
This commit is contained in:
Thibaut Gorioux
2024-03-28 18:24:07 +01:00
committed by GitHub
parent f0c2d4ead0
commit 2181cdd118
2 changed files with 3 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
<%# locals: (transaction:) %>
<div class="relative" data-controller="dropdown">
<div class="relative" data-controller="dropdown" data-dropdown-close-on-click-value="false">
<div class="flex cursor-pointer" data-action="click->dropdown#toggleMenu">
<%= render partial: "shared/category_badge", locals: transaction.category.nil? ? {} : { name: transaction.category.name, color: transaction.category.color } %>
</div>