Multiselect updateLabel fails when selectedItemsLabel does not include {} #4905
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
I'm submitting a bug report.
I am not attaching plunker fork, as the issue is best demonstrated by the source code
In multiselect.ts component in updateLabel() function at line 394 code assumes presence of the
{}
in the value ofselectedItemsLabel
property (e.g. [0] on the regex matches).Documentation does not require such presence, and requiring it prevents simple and useful use cases, e.g. displaying the same string to the user when nothing or all is selected when implementing filter parameters.
Fix is trivial, please implement it.
The text was updated successfully, but these errors were encountered: