vue-multiselect
                                
                                 vue-multiselect copied to clipboard
                                
                                    vue-multiselect copied to clipboard
                            
                            
                            
                        "max" does not work properly when selecting all items in an option group
When using option groups it is possible to select more item than what is defined in max
Reproduction Link
https://jsfiddle.net/q4xb5ns6/
Steps to reproduce
Select the "test" group to select all its items
Expected behaviour
Only 2 items are selected because max is set to 2
Actual behaviour
All items are selected
To do that we can remove the last items of the value manually (using splice) if the value.length is greater than or equal to the max value on the @input event.
@Yosi85 Please provide new production link as old one is not working.
@akki-jat I've created a new jsFiddle as requested. https://jsfiddle.net/10wvLmng/1/
@Yosi85 - Thanks for quick response.
@Yosi85 Please provide new production link as old one is not working.
Just add vue2 cdn url to resources, it will work
@Yosi85 / @lehoaibaokg Opened the PR, please take a look.
https://github.com/shentao/vue-multiselect/pull/1580
Thanks for fixing this. Any idea when 2.1.7 is going live?
Check out the discussion happening around the release here: https://github.com/shentao/vue-multiselect/discussions/1589