Skip to content

ContentSwitcher selected event not triggering on initial click if no content is initially selected #1802

@chinteck93

Description

@chinteck93

Detailed description

Describe in detail the issue you're having.
even on the story book, https://vue.carbondesignsystem.com/?path=/story/component-cvcontentswitcher--multiple-switchers&args=selectedIndex:-1
if the control is initially set to -1, the 1st click on any of the tab does not trigger the selected event from the cv-content-switcher component

Is this a feature request (new component, new icon), a bug, or a general issue?
bug

Is this issue related to a specific component?
cv-content-switcher

What did you expect to happen? What happened instead? What would you like to see changed?
selected event should have triggered with the set owner-id of the button

What browser are you working in?
chrome

What version of the Carbon Design System are you using?
https://www.npmjs.com/package/@carbon/vue/v/3.0.29

What offering/product do you work on? Any pressing ship or release dates we should be aware of?

Steps to reproduce the issue

even on the story book, https://vue.carbondesignsystem.com/?path=/story/component-cvcontentswitcher--multiple-switchers&args=selectedIndex:-1

  1. set control initially to -1,
  2. click on any of the tab
    expected behavior: selected event from the cv-content-switcher component should have triggered

Additional information

  • Screenshots or code
  • Notes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions