Bug: When calendar is closed by clicking cancel button, It should be focus out #2638
Labels
Type: Enhancement
Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone
I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see
https://forum.primefaces.org/viewforum.php?f=57
Codesandbox Case (Bug Reports)
https://codesandbox.io/s/primereact-test-forked-v4c84?file=/src/index.js
Current behavior
when the calendar is open and closed by clicking clear button on footer, It is still stay focused.
So when a user click calendar input again, calandar not open if calendar input does not lose focus.
This leads bad user experience.
Expected behavior
Calendar input should be lose focus when calendar panel is closed by clicking clear button on footer.
Minimal reproduction of the problem with instructions
showButtonBar
props istrue
Please tell us about your environment:
mac os 12.1, vscode
React version:
16.6
PrimeReact version:
7.2
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 ]
all
all
The text was updated successfully, but these errors were encountered: