Hi all,
first thread here, loving weweb so far.
i’m building a simple marketplace with filterable listing, i’m working with some Input multiselect. i made a component and so far with user input they work perfectly.
Now i’m trying to assign the currentSelection value programmatically (i need to read it from the query string)
I tried set the Initial value but this doesn’t trigger the onChange workflow that changes the filters and update the filtered collection.
I created a Set Value Action on the Input Multiselect component. It set the currentSelection to update the UI of the multiselect and then triggers the onChange event. When i run this workflow with the test values, the variable is changed and the event is triggered in the log…but not really: the component’s instance that has a workflow on the onChange event doesn’t seem to do anything, the actions in “Filter by Providers” don’t happen (it just set a filtering variable and fetch a collection with the new filter).
Actions and triggers within the Input multiselect component “Filter DD”:
Set Value workflow:
OnChange on the instance of the component
Similar thing with a page workflow “on page load before fetching collection”:
i set the parameter that is used to filter the collection (i read it from queryparam). the collection is then not filtered. if i switch the workflow to just “on page load” and add the a “fetch collection” action, then all is good.
am i missing something about these workflows? or probably some error on my side or bug…
thanks to anyone that will clarify these. great community!