-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
onDateChange signature inconsistent with Semantic UI React components #30
Comments
Hi @JonSilver! 👋 I think you have a great point, would be nice to match the APIs. Would you be interested to work on this? |
Thanks @arthurdenner. I wouldn't say no, but I have precious little time for my own projects, let alone others'. However I definitely have a use for such a component or I wouldn't have found yours. 🙂 There would be significant breaking changes to the API which would at least inconvenience existing users. Or we could leave My main focus here would be on standardising APIs - almost everything else about your component is great (maybe apart from the external CSS dependency) 🙂. I've had a look at a couple of such components - the other one makes a date picker component synchronise with a string value rather than a JS date, which is just weird, not friendly for multi-locale usage, and incredibly inconvenient. But it does do times, which yours doesn't - and could be useful. |
I don't mind having breaking changes. That would cause a major version bump anyway, so users would be aware of the changes and would migrate if they think it's necessary. I don't like the idea of having two methods, I'd rather rename I'll flag this as Thank you for the suggestions again, they are very great. |
Ok @arthurdenner I'll probably end up forking your repo and making the modifications for myself anyway, so if I do I'll submit a PR once I've tested it all. Thanks for being so receptive to my suggestions. 🙂 |
🎉 This issue has been resolved in version 2.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🐛 bug report
Description of the problem
This component has a very different API/parameters/signature for onDateChange event to that presented by the Semantic UI React components. The components in Semantic UI React all have
(event, data)
signatures for event handlers such as those foronChange
. This facilitates consistent treatment for the whole family of components using generic event handlers.How has this issue affected you? What are you trying to accomplish?
The component simply doesn't play nicely in a form where generic event handlers have been written to interact with the events of Semantic UI React components.
The text was updated successfully, but these errors were encountered: