davidtheclark / react-aria-tabpanel

A fully accessible, extravagantly flexible, React-powered Tab Panel component

Home Page:http://davidtheclark.github.io/react-aria-tabpanel/demo/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

controlled tabpanel tabs do not change on second click

jamesjjk opened this issue · comments

commented

@davidtheclark Hi, I'm using the controlled tab panel, the only problem is that it seems to fire a click event on clicking a tab. Now if I for example I do not update the state to the requested tab.

The tab will not be able to receive a secondary click.

The same is for when I change tab by updating a state after a click on a button within the tabpanel, it will not be able to go back to the previous tab by click the tab. It looks like the mouse/click event is being fired causing an uncontrolled propagation..

I'm having some difficulty understanding this request. Could you try to provide some code to concretely illustrate?