Closed EvanOxfeld closed 10 years ago
If options are placed on scope after the selectize component is initialized, one of the options is set to active, and it isn't the first option. Closing and reopening the dropdown once seems to reset this.
Here's a plunk that demonstrates the problem -- http://plnkr.co/edit/TaAssL
The addItem() in scheduleUpdate() can change the active option. Manually setting the active option on the following line may be the way to go.
addItem()
scheduleUpdate()
If options are placed on scope after the selectize component is initialized, one of the options is set to active, and it isn't the first option. Closing and reopening the dropdown once seems to reset this.
Here's a plunk that demonstrates the problem -- http://plnkr.co/edit/TaAssL