Skip to content

Conversation

@mertpamukcu
Copy link

just wanted to share my commit for make this selectbox works with external changes on selected value. Please update if there is a better way.

$scope.$watch('vm.value',function(){
// watches value changes from external locations.
// Useful for working with socket.io
_getSelected();
Copy link

@myershov myershov Jul 27, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@milica, thank you for your job!
I have found similar bug in my apps, and that solution resolve my problem.
@mertpamukcu, great that you found it;
But we have one more problem;
We need to delete additional call
_getSelected();
From function 'change' at line 177, because it will be called from watch; Avoided double call.

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