Promact/md2

Select: Multi select with search header

Closed this issue · 4 comments

Bug, feature request, or proposal:

Bug/feature request

What is the expected behavior?

while Multi selecting with search the already selected elements are not suppose to remove from select.

What is the current behavior?

while Multi selecting with search the already selected elements are removing from select.

What are the steps to reproduce?

http://plnkr.co/edit/rQmUz8WYRh5Vz4gwY8E4?p=preview

Steps to Reproduce.

  1. Select any two elements(vadodra,Rajakot)
  2. close the select
  3. Search for "Goa"
  4. Select "Goa"

The already selected items get removed.

@prudhvireddy123 there are actually applied the filter to remove the select option from the array, so we can't access it inside the select component and while update select option, we update according to the model of it

@dharmeshpipariya Thanks. May you help me to make search will work with multi select.?

@prudhvireddy123 it is difficult to manage search in multiple select, you can manage selected options while calling change event, but I suggest do not use search functionality with multiple select.