angular-select2 icon indicating copy to clipboard operation
angular-select2 copied to clipboard

Fix selection when adding to s2-options

Open Jasu opened this issue 9 years ago • 1 comments

When a new item is added to s2-options, the option can be selected in the menu, but after that ng-model is set to null, since optionItems has not been refreshed. This patch adds refreshing of optionItems into opts.query for the normal case too.

Jasu avatar Jul 13 '16 10:07 Jasu

I just stumbled with this bug, your solution works perfectly, thanks a lot! You saved me a bunch of debugging time trying to figure this out

marioBonales avatar Sep 09 '16 19:09 marioBonales