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
Dropdowns make a hidden select element as well as a tree of divs which are visible.
Inside the select there are options which contain both the text and the value properties.
Inside the tree of divs there are a number of div.item which contain the text, but not the value.
When the onChange handler is called the HTMLElement inside the event points to the div.item. Therefore the value property is difficult to access from the change handler.
Once we get callback signatures listed in the docs, this will also be made more clear as the prop table will show precisely which arguments and values the callbacks are called with. This is coming soon!
Dropdowns make a hidden select element as well as a tree of divs which are visible.
Inside the select there are options which contain both the text and the value properties.
Inside the tree of divs there are a number of div.item which contain the text, but not the value.
When the onChange handler is called the HTMLElement inside the event points to the div.item. Therefore the value property is difficult to access from the change handler.
This can actually be seen in the default codepen:
http://codepen.io/levithomason/pen/ZpBaJX
Although you have to go through the dom to find it.
The text was updated successfully, but these errors were encountered: