Remove default event from collpased nav-tabs button

Created on 28 March 2024, 3 months ago
Updated 11 April 2024, 2 months ago

Problem/Motivation

In and edge case a list of links using the nav-tabs element could be placed inside a form. The button element has a default event to submit a form and we don't want opening the tabs-list to do that.

Steps to reproduce

Place a nav-tabs element inside a from. In collapsed state click the display toggle button for the nav-tabs. This will trigger submit.

Proposed resolution

A button of type=button doesn't have a default even. This is a simple solution and shouldn't do any harm even if it only fixes edge cases.

📌 Task
Status

Fixed

Version

10.2 ✨

Component
Claro  →

Last updated 2 days ago

Created by

🇫🇮Finland simohell

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024