Skip to content

onBlur fires only when first date selected in SemanticDatepicker when type is range #238

@ghost

Description

🐛 bug report

Thanks for your work, I like the project.

Description of the problem

Hello, when I use the SemanticDatepicker with type as range, I expect the to catch the onBlur callback when the second date is selected in the range. Right now, it only fires when you select the first date (and not the second date in the range). Seems like the onBlur functionality could be working only for a single date picker

How has this issue affected you? What are you trying to accomplish?

I'm trying to automatically make a query when a range is set. I can do this by detecting the length of the data.value in onChange but that doesn't seem like the proper way.

Link to a sandbox: link (optional)

https://codesandbox.io/s/romantic-feather-025i4?file=/src/App.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreleased

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions