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

DatePicker executes onBlur when clicking on different parts of the component #388

Open
cyiafn opened this issue Jun 9, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@cyiafn
Copy link
Contributor

cyiafn commented Jun 9, 2023

Describe the bug
onBlur executes even when the calendar icon + the calendar is clicked. Even though technically, the component is not unfocused.

To Reproduce
Steps to reproduce the behavior:

  1. If you console.log the onBlur prop for the DatePicker
  2. Click on the cal icon or the cal
  3. You will see the console.log

Expected behavior

  1. Only clicking outside of the input field, the cal icon and the cal should see the log.

Desktop (please complete the following information):

  • OS: MacOS 13.3.1(a)
  • Browser Chrome
  • Version 114.0.5735.106 (Official Build) (arm64)
@cyiafn cyiafn added the bug Something isn't working label Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant