Skip to content

Commit 822b5ca

Browse files
committed
Add .prevent modifier to @click event handler
1 parent cc52e5a commit 822b5ca

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

view/frontend/templates/component/debugger.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ $htmlId = $idConvertor->toElementId($block->getNameInLayout());
2929
aria-controls="tab-server"
3030
data-tab-name="server"
3131
type="button"
32-
@click="switchTab"
32+
@click.prevent="switchTab"
3333
:class="buttonCssClass"
3434
class="<?= $css('inline-flex rounded-t-lg border-t border-l border-r p-4 border-gray-300 ', 'button-server') ?>">
3535
Server Dump
@@ -41,7 +41,7 @@ $htmlId = $idConvertor->toElementId($block->getNameInLayout());
4141
aria-controls="tab-components"
4242
data-tab-name="components"
4343
type="button"
44-
@click="switchTab"
44+
@click.prevent="switchTab"
4545
:class="buttonCssClass"
4646
class="<?= $css('inline-flex rounded-t-lg border-t border-l border-r p-4 border-gray-300 ', 'button-components') ?>">
4747
Registered Components

0 commit comments

Comments
 (0)