polaris icon indicating copy to clipboard operation
polaris copied to clipboard

Tabs taking keypress focus

Open alexdover opened this issue 9 years ago • 6 comments

Issue summary

I'm using the tabs component to render a settings page which has multiple forms. The documentation is a little light on how to code up the panel contents, but I have used onSelect to toggle between the forms I have.

What I have now found and can't seem to stop is that every time I press a key in the forms, the tabs grab the focus.

I am new to React so apologies if I am missing something obvious!

Expected behavior

When completing a form on the page the tabs do not take the focus.

Actual behavior

Typing into a field on the same page as a tab sees tab take the focus

Steps to Reproduce the Problem

Specifications

  • Polaris version: 1.0.2
  • React version: 15.5.4
  • Browser: Chrome
  • Device: Macbook Pro
  • Operating System: MacOs Sierra

NOTE: This repo is only used for reporting issues and new feature requests. We are not accepting pull requests at this point in time.

alexdover avatar May 31 '17 09:05 alexdover

Thanks for the issue, @alexdover, confirmed that this is indeed happening. I'll have a fix up in the next version, which I am hoping to release on Friday. Will close this issue once it's addressed.

lemonmade avatar May 31 '17 18:05 lemonmade

OK, thanks - at least it wasn't just a newbie issue!

alexdover avatar Jun 01 '17 07:06 alexdover

Should be fixed by v1.1.0

lemonmade avatar Jun 19 '17 17:06 lemonmade

Great, thanks!

alexdover avatar Jun 19 '17 20:06 alexdover

I just upgraded to polaris v1.1.1

Still having this issue.

cbodtorf avatar Jun 20 '17 16:06 cbodtorf

@cbodtorf can you provide some markup that exhibits this issue? I am unable to reproduce.

lemonmade avatar Jun 21 '17 18:06 lemonmade