myforce / angularjs-dropdown-multiselect

AngularJS Dropdown Multiselect
http://myforce.github.io/angularjs-dropdown-multiselect/
MIT License
34 stars 28 forks source link

Restore search-filter bidirectionality #29

Open chrysn opened 8 years ago

chrysn commented 8 years ago

This makes the search-filter bidirectional again by explicitly adding a watch from the .input.searchFilter back to .searchFilter, where the bidirectional binding can take it up.

This solves the issue only in one direction (changes to the variable from outside still won't propagate in), and feels needless, but works for the purpose of the bug report.

Closes: https://github.com/myforce/angularjs-dropdown-multiselect/issues/19

chrysn commented 8 years ago

please note that this is a very crude fix; there are probably ways to solve this that are both bidirectional and get away without an additional watch.