app/components/coco/app/elements/alert/alert.html.erb in coveragebook_components-0.8.6 vs app/components/coco/app/elements/alert/alert.html.erb in coveragebook_components-0.8.7
- old
+ new
@@ -38,11 +38,11 @@
<% if action? || secondary_action? %>
<div class="alert-actions">
<% if action? %>
<div class="alert-action"
x-ref="action"
- @click="dismiss"
+ @click="if ($options.dismissAfterAction) dismiss()"
data-role="action">
<%= coco_button(
*@action_data[:args],
**@action_data[:kwargs],
size: button_size,
@@ -52,10 +52,10 @@
<% end %>
<% if secondary_action? %>
<div class="alert-action"
x-ref="secondaryAction"
- @click="dismiss"
+ @click="if ($options.dismissAfterAction) dismiss()"
data-role="secondary-action">
<%= coco_button(
*@secondary_action_data[:args],
**@secondary_action_data[:kwargs],
size: button_size,
\ No newline at end of file