Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

Fix updating view after programmatic changes #221

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ravishivt
Copy link

Use timeout to render view after programmatic changes to the model.

Use timeout to render view after programmatic changes to the model.
@CharlesHamel
Copy link

+1

@Splaktar
Copy link

This works, thank you!

Splaktar pushed a commit to Splaktar/ui-select2 that referenced this pull request Sep 30, 2014
…pull request angular-ui#221 that hasn't been merged in 3 months.
@Splaktar
Copy link

This breaks two of the unit tests across all browsers:
Firefox 33.0.0 (Windows 7) uiSelect2 with an element updated the view when model changes with complex object FAILED
Expected [ { id : '0', text : '0' } ] to equal [ { id : '0', text : '0' }, { id : '1', text : '1' } ].
Firefox 33.0.0 (Windows 7) uiSelect2 with an element simple_tags Updating the model with a string will update the select2 view model. FAILED
Expected [ ] to equal [ { id : 'tag1', text : 'tag1' } ].

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

Successfully merging this pull request may close these issues.

3 participants