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

[TextField] Focused prop is not setting focus on the element #985

Closed
amireynoso opened this issue Feb 7, 2019 · 1 comment
Closed

[TextField] Focused prop is not setting focus on the element #985

amireynoso opened this issue Feb 7, 2019 · 1 comment
Assignees
Labels
Bug Something is broken and not working as intended in the system.

Comments

@amireynoso
Copy link
Contributor

Issue summary

The focused prop on the <TextField /> component is not setting focus on the input.

Expected behavior

When focused is set to true, the input (or textarea if multiline is set) should be on its focus state.

Actual behavior

The input/textarea is on its default state.

Steps to reproduce the problem

  1. Create a <TextField /> with the focused prop set to true
  2. Verify the input is not on its focus state

Reduced test case

https://codesandbox.io/s/n41rrjovl0?module=App.js

Specifications

  • Are you using the React components? (Y/N): Yes
  • Polaris version number: 3.6.0
  • Browser: Google Chrome 71.0.3578.98
  • Device: MacBook Pro
  • Operating System: macOS Mojave 10.14.2
@ghost
Copy link

ghost commented Feb 7, 2019

👋 Thanks for opening your first issue. A contributor should give feedback soon. If you haven’t already, please check out the contributing guidelines. You can also join #polaris on the Shopify Partners Slack.

@dpersing dpersing added the Bug Something is broken and not working as intended in the system. label Feb 7, 2019
@amireynoso amireynoso self-assigned this Feb 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken and not working as intended in the system.
Projects
None yet
Development

No branches or pull requests

2 participants