freshworks / crayons

🖍️ Crayons - A UI Kit comprising of web components for building Freshworks Apps!

Home Page:https://crayons.freshworks.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] - active-tab-name attribute is not working as expected in fw-tabs component

mariappan-subramanian opened this issue · comments

Component
Tabs (fw-tabs)

Description

active-tab-name attribute of fw-tabs specifies the name of the tab to be activated. But, it's not working as expected. While active-tab-index works.


To Reproduce
Steps to reproduce the current behavior:

<fw-tabs active-tab-name="official">
  <fw-tab slot="tab" panel="personal">Personal</fw-tab>
  <fw-tab slot="tab" panel="official">Official</fw-tab>

  <fw-tab-panel name="personal">
   ...
  </fw-tab-panel>

  <fw-tab-panel name="official">
   ...
  </fw-tab-panel>
</fw-tabs>

Expected behavior
Should activate official tab