aboutsummaryrefslogtreecommitdiff
path: root/src/components/tab_switcher
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2021-02-01 21:07:09 +0200
committerHenry Jameson <me@hjkos.com>2021-02-01 21:07:09 +0200
commit982c799b6fde804018656212aea6128a6f0df928 (patch)
tree3c829339bbb2dc9b4f4baccb4084dc77ecb4936b /src/components/tab_switcher
parentde66267a07eb018cc0309ff6f9dd896d53ba3ff4 (diff)
fix a bunch of <button>s acting as submit buttons breaking enter key
Diffstat (limited to 'src/components/tab_switcher')
-rw-r--r--src/components/tab_switcher/tab_switcher.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/tab_switcher/tab_switcher.js b/src/components/tab_switcher/tab_switcher.js
index 76e7ef03..12aac8e6 100644
--- a/src/components/tab_switcher/tab_switcher.js
+++ b/src/components/tab_switcher/tab_switcher.js
@@ -93,7 +93,9 @@ export default Vue.component('tab-switcher', {
<button
disabled={slot.data.attrs.disabled}
onClick={this.clickTab(index)}
- class={classesTab.join(' ')}>
+ class={classesTab.join(' ')}
+ type="button"
+ >
<img src={slot.data.attrs.image} title={slot.data.attrs['image-tooltip']}/>
{slot.data.attrs.label ? '' : slot.data.attrs.label}
</button>