patternfly-react icon indicating copy to clipboard operation
patternfly-react copied to clipboard

Tabs demo - selected tab jumps back to first tab

Open srambach opened this issue 11 months ago • 4 comments

Describe the problem In the example for tabs linked to nav elements, after clicking to a tab other than the first, the view starts to jump back to the leftmost tab immediately after clicking another one.

This bug exists in V5 as well as V6.

Reported by @mshriver

srambach avatar Mar 25 '25 17:03 srambach

We should try to make this example more functional to convey the intent, but if it is too messy/skirts too much on demo territory we should just update the example description to state that the example doesn't handle routing and it will be up to the consumer.

thatblindgeye avatar Mar 27 '25 15:03 thatblindgeye

https://github.com/ibutsu/ibutsu-server/pull/621/files#diff-c0da628a6378ea38af6d8d97b5dc617a202a9e673f8ab5ff6c28b57662b39de1

Here is an amateur's custom hook to handle an activeTab state and onTabSelect hook, but I dropped the href attribute for the Tab component to do so. If this is reasonable as a PF demo I can pull the commit out into the demo code?

mshriver avatar Apr 16 '25 18:04 mshriver

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

github-actions[bot] avatar Jun 19 '25 11:06 github-actions[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

github-actions[bot] avatar Aug 21 '25 11:08 github-actions[bot]