Skip to content

Commit 60fb2a1

Browse files
authored
Update tabs.md (#263)
1 parent cee47a8 commit 60fb2a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/tabs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ application.register('tabs', Tabs)
1212
```html
1313
<div data-controller="tabs" data-tabs-active-tab-class="-mb-px border-l border-t border-r rounded-t">
1414
<ul class="list-reset flex border-b">
15-
<li class="-mb-px mr-1" data-tabs-target="tab" data-action="click->tabs#change">
15+
<li class="-mb-px mr-1" data-tabs-target="tab" data-action="click->tabs#change:prevent">
1616
<a class="bg-white inline-block py-2 px-4 text-blue-500 hover:text-blue-700 font-semibold no-underline" href="#">Active</a>
1717
</li>
18-
<li class="mr-1" data-tabs-target="tab" data-action="click->tabs#change">
18+
<li class="mr-1" data-tabs-target="tab" data-action="click->tabs#change:prevent">
1919
<a class="bg-white inline-block py-2 px-4 text-blue-500 hover:text-blue-700 font-semibold no-underline" href="#">Tab</a>
2020
</li>
21-
<li class="mr-1" data-tabs-target="tab" data-action="click->tabs#change">
21+
<li class="mr-1" data-tabs-target="tab" data-action="click->tabs#change:prevent">
2222
<a class="bg-white inline-block py-2 px-4 text-blue-500 hover:text-blue-700 font-semibold no-underline" href="#">Tab</a>
2323
</li>
2424
<li class="mr-1">

0 commit comments

Comments
 (0)