Patterns icon indicating copy to clipboard operation
Patterns copied to clipboard

pat-depends select field with multiple options matches only the first selected value

Open Nimo-19 opened this issue 6 months ago • 0 comments

When I select multiple options in the select field Choose your satisfaction level on the demo page only the first selected option is evaluated for the pad-depends below.

It think the problem is the in the Dependshandler _getValue funktion.

https://github.com/Patternslib/Patterns/blob/25bb1f7956c00043cadcad84b7ac48885f80a06f/src/lib/dependshandler.js#L47

the input[0].value returns only the first of the selected options when the input element is a select element.

tested in firefox 138.0.4 and Chromium 136.0.7103.113

Nimo-19 avatar May 26 '25 06:05 Nimo-19