Skip to content

Add ability to prevent or delay updating the ngModel on choose/unchoose

Compare
Choose a tag to compare
@josephschmitt josephschmitt released this 06 Jun 21:08
· 25 commits to master since this release

onChosen and onUnchosen now get access to an $event object in their locals which let them
call preventDefault() to prevent updating of the model, and later performDefault() to perform it.

Also, added unit tests for the choose and unchoose functions, including these new features.