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

Not able to set focus on Dropdown component #903

Closed
GO-gyan opened this issue May 28, 2019 · 1 comment
Closed

Not able to set focus on Dropdown component #903

GO-gyan opened this issue May 28, 2019 · 1 comment
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@GO-gyan
Copy link

GO-gyan commented May 28, 2019

Codesandbox Case (Bug Reports)

https://codesandbox.io/s/dropdownautofocus-jko5d

Current behavior
In dropdown component autoFocus attribute is not working.

Expected behavior
In onload event focus should be on dropdown if we have passed autoFocus={true}.
In this codesandbox example I have taken help of onClick event.

Minimal reproduction of the problem with instructions

Please tell us about your environment:

Windows 10, Visual Studio Code, npm, webpack dev server

  • React version:
    16.7.0

  • PrimeReact version:
    3.1.3

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

  • Language: [all | TypeScript X.X | ES6/7 | ES5]
    ES6
@GO-gyan GO-gyan changed the title Not able to set focus on Dropdown component. Neither autoFocus attribute working nor by using ref. Not able to set focus on Dropdown component. Neither autoFocus attribute is working nor by using ref. May 30, 2019
@cagataycivici cagataycivici self-assigned this May 30, 2019
@cagataycivici cagataycivici added the Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add label May 30, 2019
@cagataycivici cagataycivici added this to the 3.1.4 milestone May 30, 2019
@cagataycivici cagataycivici added Type: Bug Issue contains a defect related to a specific component. and removed Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add labels May 30, 2019
@cagataycivici cagataycivici changed the title Not able to set focus on Dropdown component. Neither autoFocus attribute is working nor by using ref. Not able to set focus on Dropdown component May 30, 2019
@GO-gyan
Copy link
Author

GO-gyan commented May 30, 2019

Hi @cagataycivici,
Please let me know in which version this fix will be available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

No branches or pull requests

2 participants