Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

Bug: Setting focus to a calcite-action, doesnt set it to the button, need to tab again to get to the button #475

Closed
kevindoshier opened this issue Oct 28, 2019 · 3 comments
Assignees
Labels
4 - verified blocked Waiting on a dependency bug Something isn't working known limit p - low

Comments

@kevindoshier
Copy link

Summary

Setting focus to a calcite-action, doesnt set it to the button, need to tab again to get to the button

Actual Behavior

Expected Behavior

Setting focus to a calcite-action sets the focus to the button in the shadow dom, that way Enter key etc will work as expected

Reproduction Steps

Relevant Info

@kevindoshier kevindoshier added the bug Something isn't working label Oct 28, 2019
@kat10140 kat10140 added this to the Donny milestone Oct 29, 2019
@driskull
Copy link
Member

driskull commented Nov 1, 2019

Unfortunately, we can't fix until one of these issues are addressed:

ionic-team/stencil#1008
ionic-team/stencil#1623

OR

Stencil allows us to extend a button directly.

@kevindoshier can you focus on the item through the element.shadowRoot?


https://developers.google.com/web/fundamentals/web-components/shadowdom#focus

Because we have to have a button within the <host> and the host doesn't act like a button, we have this issue.

If we could delegate the focus to the button then I think it wouldn't be an issue.

@driskull
Copy link
Member

Installed. Will be on next release. The calcite-action will now have a setFocus() method.

@driskull driskull modified the milestones: Backlog, Grob Gob Glob Grod Jan 3, 2020
@kat10140
Copy link
Contributor

kat10140 commented Jan 6, 2020

verified!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
4 - verified blocked Waiting on a dependency bug Something isn't working known limit p - low
Projects
None yet
Development

No branches or pull requests

3 participants