Hello,
As far as we can see in 0.10 there is no support for SELECT with multiple="multiple" attribute. The library shows an error on the console.
We have a fix to get rid of the error, but it's far from complete solution: ...
@@ -554,9 +556,15 @@ inputs = form.querySelectorAll("select[name]"); for (i = 0; i < inputs.length; ++i) { input = inputs.item(i); - value = v.sanitizeFormValue(input.options[input.selectedIndex].value, options); - values[input.name] = value; + for( j=0; j<input.options.length; j++ ) { + select_option = input.options[j]; + if( select_option.selected ) { + value = v.sanitizeFormValue( select_option.value, options); + values[input.name] = value ; } + } + }
The text was updated successfully, but these errors were encountered:
Is this regarding validate.collectFormValues()?
validate.collectFormValues()
Sorry, something went wrong.
Yes this is.
7c142c6
Released in 0.11.0
so, is there a way of validating multiselect? more precisely writing constraint for array values?
No branches or pull requests
Hello,
As far as we can see in 0.10 there is no support for SELECT with multiple="multiple" attribute. The library shows an error on the console.
We have a fix to get rid of the error, but it's far from complete solution:
...
The text was updated successfully, but these errors were encountered: