angular-ui/bootstrap — pull request #3119 by mwinkels (2014-12-17 16:38:24+00:00)
Title: Only resetMatches when showing matches.

Make the dismissClickHandler less aggressive by only resetting matches when matches are being shown. Use $apply insetad of $digest.