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
I was trying to create a reusable <select> component, and my naive approach was to use slots, but that didn't work. I've resorted to using a render function within my custom select WebC component and it works now. However, to be generic, I'm trying to pass data in as an object and dynamically render it on the other side. The reproduction and the workaround I've found are at the bottom of this issue.
Bug
<!-- Main component --><scriptwebc:setup>functionoptions(){return["1","2","3","4",];}</script><cr-fieldset><cr-selectname="motivation"
:@options="options()"
></cr-select></cr-fieldset>
I was trying to create a reusable
<select>
component, and my naive approach was to use slots, but that didn't work. I've resorted to using a render function within my customselect
WebC component and it works now. However, to be generic, I'm trying to pass data in as an object and dynamically render it on the other side. The reproduction and the workaround I've found are at the bottom of this issue.Bug
This results in the follow error:
Reproduction
Reproduction commit: darthmall/webc-select-options-setup-func-repro@247df02
I managed to get around the issue by pulling the setup script and
<cr-select>
to a separate file.Workaround commit: darthmall/webc-select-options-setup-func-repro@df8ef9b
The text was updated successfully, but these errors were encountered: