Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
TonyWhiteSMS opened this issue Dec 9, 2024 · 1 comment
Open
1 task done
Assignees
Labels
bug Something isn't working

Comments

@TonyWhiteSMS
Copy link
Contributor

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
@TonyWhiteSMS TonyWhiteSMS added the bug Something isn't working label Dec 9, 2024
Copy link
Contributor

github-actions bot commented Dec 9, 2024

Thank you for posting this issue. 🙇🏼‍♂️
We will come back to you shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants