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 executiong onChange function for Select using a non native feature, it should return event and child but child element is not returning, I was debugging this by myself and I realize that onChange function that is executing belongs to a input element and not the onChange function that I passed downb to the props
I attached a screenshot to illustrate the bug
This is a v1.x issue.
I have searched the issues of this repository and believe that this is not a duplicate.
Expected Behavior
Should return event and child element selected when executing onChange
Current Behavior
only return event when executing onChange
Steps to Reproduce
Just render the select component with non native, and try using a onChange function and get the child argument
Context
I want to get the child selected to get more information than value itself when selecting a option in Select component
Your Environment
Tech
Version
Material-UI
^v1.2.1
React
^16.4.2
browser
Google Chrome Version 68.0.3440.75 (Official Build) (64-bit) (Mac)
The text was updated successfully, but these errors were encountered:
@oliviertassinari sorry if I explain myself in wrong way, the docs says: function(event: object, child?: object) => void event: The event source of the callback. You can pull out the new value by accessing event.target.value. child: The react element that was selected when native is false (default).
the dark words says that when native is false it should return the child argument, I am using the native: true, but not child element is returned
the dark words says that when native is false it should return the child argument, I am using the native: true, but not child element is returned
@johuder33 Don't worry, things will be clearer after a good night sleep :).
Should we make both API by identically? I would say no, it's pretty specific. What's your use case? Why using the DOM to access the information, why don't you use the raw data?
When executiong onChange function for Select using a non native feature, it should return
event and child
but child element is not returning, I was debugging this by myself and I realize that onChange function that is executing belongs to a input element and not the onChange function that I passed downb to the propsI attached a screenshot to illustrate the bug
Expected Behavior
Should return event and child element selected when executing onChange
Current Behavior
only return event when executing onChange
Steps to Reproduce
Just render the select component with non native, and try using a onChange function and get the child argument
Context
I want to get the child selected to get more information than value itself when selecting a option in Select component
Your Environment
The text was updated successfully, but these errors were encountered: