The library does not seem to be handling duplicate items in the list very well. Duplicate items are treated like the same items and ticking both items does not increment selection count. Un-ticking any of selected items removes both from the button.
My use-case for having duplicate items is with opt-groups, where item can belong to multiple groups.
The library does not seem to be handling duplicate items in the list very well. Duplicate items are treated like the same items and ticking both items does not increment selection count. Un-ticking any of selected items removes both from the button.
My use-case for having duplicate items is with opt-groups, where item can belong to multiple groups.
Working example: https://jsbin.com/jisalukiyo
Example code: