Skip to content

LWC Workspace API - focus tab does not work when component on homepage/menu page #998

@TonyWhiteSMS

Description

@TonyWhiteSMS

Summary

When a component is added to a homepage, it will not be able to change focus using focusTab to navigate to another tab.

Salesforce Org Type

Sandbox

Steps To Reproduce

Deploy this component from lwc recipies - https://github.com/trailheadapps/lwc-recipes/tree/main/force-app/main/default/lwc/workspaceAPIFocusTab
Adjust metadata to have extra target:

<target>lightning__HomePage</target>

In Service Console, edit page and add the component to the page.
Save
Return to home page
Refresh the page
Click the next tab button - nothing happens

If you click to a tab and back to home page the button will work as expected.

Current Behavior

The focusTab method does not work when the starting point is the homepage/menu item page.

Expected Behavior

The focusTab method should work when the starting point is the homepage/menu item page.

Relevant Log Output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions