Skip to content

fix(web-components): select a tab when click() is called on it#36395

Open
marchbox wants to merge 3 commits into
microsoft:masterfrom
marchbox:users/machi/fix-tablist-click
Open

fix(web-components): select a tab when click() is called on it#36395
marchbox wants to merge 3 commits into
microsoft:masterfrom
marchbox:users/machi/fix-tablist-click

Conversation

@marchbox

Copy link
Copy Markdown
Contributor

Previous Behavior

A tab is not selected when tabElement.click() is called. Because a tab is selected in the tablist’s focusin event handler, while a user click would dispatch the focusin event, caliing click() on the tab element doesn’t.

New Behavior

Added event handler on click event to select a tab only when event.isTrust === false.

@github-actions

Copy link
Copy Markdown

📊 Bundle size report

✅ No changes found

@github-actions

Copy link
Copy Markdown

Pull request demo site: URL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant