Open johnsicili opened 4 months ago
Query string is correct, but seems like we are not using URLSearchParams parser, which correctly parses search string, if you put into the browser ?a=1&a=2
const search = new URLSearchParams(location.search)
for (const value of search) {
console.log(value)
}
Will log:
(2) ['a', '1']
(2) ['a', '2']
Turns out we are using a flat object because in expressions the autocompletion wouldn't work otherwise.
When submitting a form with multiple options selected in a select list, each selection gets a query param key value, but each key is the same. When accessing the value in the system.search var, only the last value shows up.
I think a solution is to comma separate the values and use one key.
Repro:
https://github.com/user-attachments/assets/169fed2b-d19c-465c-8601-563dfce0740d