@@ -18,7 +18,7 @@ $button = $block->getButton();
1818 class="actions-split <?= $ escaper ->escapeHtml (__ ($ button ->getCssClass ())) ?> "
1919 >
2020 <button
21- @click="<?= $ escaper ->escapeHtml (__ ($ button ->getMethod ())) ?> "
21+ @click.prevent ="<?= $ escaper ->escapeHtml (__ ($ button ->getMethod ())) ?> "
2222 title="<?= $ escaper ->escapeHtml (__ ($ button ->getLabel ())) ?> "
2323 <?php if ($ button ->getUrl ()): ?>
2424 data-url="<?= /* @noEscape */ $ button ->getUrl () ?> "
@@ -29,7 +29,7 @@ $button = $block->getButton();
2929 </button>
3030
3131 <button
32- @click="toggleOtherActions"
32+ @click.prevent ="toggleOtherActions"
3333 title="Toggle other actions"
3434 class="action-toggle <?= $ escaper ->escapeHtml (__ ($ button ->getCssClass ())) ?> "
3535 >
@@ -40,7 +40,7 @@ $button = $block->getButton();
4040 <?php foreach ($ button ->getSubButtons () as $ subButton ): ?>
4141 <li>
4242 <span
43- @click="<?= $ escaper ->escapeHtml (__ ($ subButton ->getMethod ())) ?> "
43+ @click.prevent ="<?= $ escaper ->escapeHtml (__ ($ subButton ->getMethod ())) ?> "
4444 <?php if ($ button ->getUrl ()): ?>
4545 data-url="<?= /* @noEscape */ $ button ->getUrl () ?> "
4646 <?php endif ; ?>
@@ -56,7 +56,7 @@ $button = $block->getButton();
5656
5757<?php else : ?>
5858 <button
59- @click="<?= $ escaper ->escapeHtml ($ button ->getMethod ()) ?> "
59+ @click.prevent ="<?= $ escaper ->escapeHtml ($ button ->getMethod ()) ?> "
6060 <?php if ($ button ->getUrl ()): ?>
6161 data-url="<?= /* @noEscape */ $ button ->getUrl () ?> "
6262 <?php endif ; ?>
0 commit comments