Skip to content

Fix selection when adding to s2-options #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

Jasu
Copy link

@Jasu Jasu commented Jul 13, 2016

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.

@marioBonales
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants