You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 ]
The text was updated successfully, but these errors were encountered:
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
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
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
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 ]
ES6
The text was updated successfully, but these errors were encountered: