Array in query not triggering response

Since updating Wappler and all core files I just noticed a bunch of queries that use arrays are no longer working.

I have some dependent multiselect fields which should update based on one or more selections but they now only trigger a response if just one value is selected. If I select more than one value nothing happens - the console shows no response whatsoever. Here are some screenshots that show this...

Here one values is selected and the fields update accordingly.

Here I select multiple values but nothing changes - there should be 12 values in the third field.

In the query I am using the IN statement along with the {{$_GET.value.split(',')}} condition.

I have not made any change to these files in over a year and everything has been working fine - the only thing that has changed is the recent updates so it seems something may have changed in the core files that is affecting this.

Any suggestions/advice would be appreciated.

Do you see any server action calls in the network tab > XHR of your browser dev tools, when selecting the values in the select?

If I select one value then yes I do. If I select more than one I don't.

Weirdly, after playing around a bit, it seems if I select multiple values from the bottom up it works as expected, but if I select them from the top-down it doesn't work.

Can you provide a link to your page where we can check this?

Sure, here's one example...

https://portal.rare.org/en/where-we-work/mozambique/

Scroll down a little and you see the section with multiselect fields.

Thanks!

@Teodor did you have any insights about this issue?

That is a strange behavior how selects work, seems that the value of the html element is only the first selected. So if you select more but the first selected is not changed then the value is not changed. I have to improve my check in the component, will post an update soon.

Thanks @patrick - yes strange indeed! And even stranger that it works fine when you select multiple values from bottom up. Maybe something to do with the first value in the array?

Have an update here that should fix the multi select.

dmxAppConnect.zip (121.0 KB)

The update will output many logs for serverconnect which I'm currently also debugging, will post a clean update later.

1 Like

Amazing - thank so much!

Fixed now in Wappler 6.7.2

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.