-
Notifications
You must be signed in to change notification settings - Fork 216
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
FormSelect onChange #191
Comments
I ran into the same issue, would be better imo |
Same here, I agree! Let's just wait for someone to confirm this issue, I can submit PR if you want. But also, this might break some apps too :) |
@IvanJov agreed, this will break any app using the @JedWatson @mxstbr Would need a major version bump -- might be a good opportunity to make some other breaking changes. |
Is there any value in passing |
How do people keep track of dynamically created FormSelects? My other inputs can work like so:
Any suggestions? |
If anyone is interested I hacked this in such a way... I just created non dynamic listeners for my 3 drop downs... :-(
|
As @clschnei said, If we pass the event as the second object then it won't break for people who update without knowing there is a breaking change. My personal preference is to allow the breaking change. Edit the API docs and sleep better knowing we made the right choice. I don't think many developers update libs unless they really need or want to. I have been on projects with versions of libs from 5 years prior. I think if you update a lib it's your duty to test your app and discover bugs. Obviously it should be noted in the release notes. But I just don't believe people do things like mass npm updates. If you do then you would be used to having things break occasionally. |
@Fasani thank you for your feedback. We could release a minor version with the event as the second argument, and a major with the proposed API. I think this would cover everyone? |
Sounds good to me! |
@jossmac I like the idea of a minor/major release path. Hold true with sem-ver and everyone's happy. |
In the FormSelect, when invoking the handleChange event, its passing the
e.target.value
instead of the event itself.Wouldn't it better to just pass the entire event?
Thanks.
The text was updated successfully, but these errors were encountered: