Child elements in a tab label break when clicked #1252
Labels
🐛 bug
Something isn't working the way it should (including incorrect wording in documentation)
⚠️ high priority
Used by the team when triaging
🕔 hours
A well understood issue which we expect to take less than a day to resolve.
Milestone
In the Tabs component, if you include HTML within a tab label – eg an abbreviation tag. When you try and click that element the javascript events don’t bubble up correctly and the component breaks.
It's probably this line causing it:
https://github.com/alphagov/govuk-frontend/blob/master/src/components/tabs/tabs.js#L172
Example nunJucks:
The text was updated successfully, but these errors were encountered: