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
Create a component with a slot which has select options passed to it that use objects. The options need objects applied for values, although I believe it will stringify the value no matter what is passed through.
What is expected?
Making a custom select element using a component with a select and a slot for the options should work with objects instead of providing the string value "[object Object]" on change.
What is actually happening?
Options passed to the component via a slot appear to get converted to a string when passed through a slot.
Example JS Fiddle shows behaviour with a normal select control and a custom select control as described when the options are passed through to the select as a slot.
As you will see the select box behaves fine but the custom component always produces a "[object Object]" value.
The text was updated successfully, but these errors were encountered:
Version
2.5.17
Reproduction link
https://jsfiddle.net/SlyFoxy12/eywraw8t/456496/
Steps to reproduce
Create a component with a slot which has select options passed to it that use objects. The options need objects applied for values, although I believe it will stringify the value no matter what is passed through.
What is expected?
Making a custom select element using a component with a select and a slot for the options should work with objects instead of providing the string value "[object Object]" on change.
What is actually happening?
Options passed to the component via a slot appear to get converted to a string when passed through a slot.
Example JS Fiddle shows behaviour with a normal select control and a custom select control as described when the options are passed through to the select as a slot.
As you will see the select box behaves fine but the custom component always produces a "[object Object]" value.
The text was updated successfully, but these errors were encountered: