app/components/coco/buttons/button/button.html.erb in coveragebook_components-0.19.6 vs app/components/coco/buttons/button/button.html.erb in coveragebook_components-0.19.7
- old
+ new
@@ -1,5 +1,9 @@
-<%= coco_tag(:div, class: "coco-button-wrapper", x: alpine_wrapper_attrs.to_h) do %>
+<%= coco_tag(:div,
+ class: "coco-button-wrapper",
+ x: alpine_wrapper_attrs.to_h,
+ key: ("coco-bw-#{rand(100000)}" if dropdown?)
+) do %>
<%= render component_tag(button_tag,
class: {
"coco-button": true,
"icon-only": icon_only?,
"with-icon": (icon? && !icon_only?)