You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This behavior has been observed when we are selecting a option
which are present in two different groups, The Pills are shown twice.
Engineering Notes:
The issue lies in the logic for filtering and creating pills in the multi-select component. The duplicate selection occurs because duplicate values in the input array are not handled.
Current implementation:
// Create new pills.
const pillsToCreate: string[] = values.filter( ( value: string ) => ! pillValues.includes( value ) );
This behavior has been observed when we are selecting a option
which are present in two different groups, The Pills are shown twice.
Engineering Notes:
The issue lies in the logic for filtering and creating pills in the multi-select component. The duplicate selection occurs because duplicate values in the input array are not handled.
Current implementation:
Proposed fix:
Impacted File
web-components/src/multi-select/tp-multi-select-pills.ts
The text was updated successfully, but these errors were encountered: