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 looking through the source code wondering how to handle reactive options and stumbled upon isReactiveOptions. At first it looked very promising but I haven't been able to get it working. I have the following in my template:
{{> afQuickField name="homeCourt" type="selectize" selectizeOptions=homeCourtOptions isReactiveOptions=true multiple=true placeholder="First choose your Home City above..."}}
The homeCourtOptions function then returns an object with its 'options' property set to an array which is computed using a reactive variable. I can see the reactivity triggering a re-compute of homeCourtOptions, however, it doesn't appear that the object being returned from homeCourtOptions is being used by the autoform-selectize package to re-compute the options. Is there something else I need to do?
The text was updated successfully, but these errors were encountered:
FYI, I managed to get it working by using the sample code from Selectize's "City / State Selection" example using the load() function instead of using isReactiveOptions.
I was looking through the source code wondering how to handle reactive options and stumbled upon isReactiveOptions. At first it looked very promising but I haven't been able to get it working. I have the following in my template:
{{> afQuickField name="homeCourt" type="selectize" selectizeOptions=homeCourtOptions isReactiveOptions=true multiple=true placeholder="First choose your Home City above..."}}
The homeCourtOptions function then returns an object with its 'options' property set to an array which is computed using a reactive variable. I can see the reactivity triggering a re-compute of homeCourtOptions, however, it doesn't appear that the object being returned from homeCourtOptions is being used by the autoform-selectize package to re-compute the options. Is there something else I need to do?
The text was updated successfully, but these errors were encountered: