Skip to content

Commit

Permalink
fix combobox enter. Fixes #686
Browse files Browse the repository at this point in the history
  • Loading branch information
yiminghe committed Sep 12, 2014
1 parent 3f93017 commit d9a3d0f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/combobox/-/src/combobox/control.js
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,8 @@ function renderData(data) {

data = self.normalizeData(data);

menu.set('highlightedItem', null);

menu.removeChildren(true);

if (data && data.length) {
Expand Down Expand Up @@ -803,4 +805,4 @@ module.exports = ComboBox;
* 1. tab 时肯定会把当前高亮项设置为 selectedItem
* 2. 鼠标时不会把高亮项的 textContent 设到 input 上去
* 1,2 都没问题,关键是键盘结合鼠标时怎么个处理?或者不考虑算了!
**/
**/

0 comments on commit d9a3d0f

Please sign in to comment.