You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: copy to clipboard button always copying content of first tab (#821)
There were a couple of issues that were causing the "Copy to clipboard" button to copy the content of the first tab:
1. It was hardcoded to look at the first `snippet` component.
2. Even if we were using the `selectedTab` to get a reference to the open tab content, it wouldn't have worked because we kept setting the `selectedTab` based on the passed in `file`. These changes make it so the tab group propagates its selected index back to the `selectedTab`.
Fixes#19867.
0 commit comments