You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the Input component with children, you have to use the onChange callback with the child input tag, and no second data parameter is passed to the callback.
Steps to Reproduce
Create a Input with children, you must use your own tag as per the Docs. The semantics tag will not run the onChange callback, you must pass as an option in your tag.
pass the onChange option with a callback option, have the callback console.log the arguments.
Expected
The onChange callback function should receive the input value as a second parameter in the callback.
Result
The callback option does not receive the value of the input as the second parameter.
We need to find the input child and spread the htmlInputProps on it. We have a findByType() util in lib for this. We simply need to find the input child and spread the props on it.
Similar to this open issue: #907
When using the Input component with children, you have to use the onChange callback with the child input tag, and no second data parameter is passed to the callback.
Steps to Reproduce
Expected
The onChange callback function should receive the input value as a second parameter in the callback.
Result
The callback option does not receive the value of the input as the second parameter.
Testcase
http://codepen.io/tintin301/pen/rWyBvw
The text was updated successfully, but these errors were encountered: