Skip to content

Commit 1fd1ef4

Browse files
committed
Update src/esui/Select.js
model修改应该在onchange之后,否则如果onchange返回false会导致model更新了但是没有重绘。
1 parent 09f3d2a commit 1fd1ef4

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/esui/Select.js

+4-5
Original file line numberDiff line numberDiff line change
@@ -424,17 +424,16 @@ esui.Select.prototype = {
424424
value = selected.value;
425425
}
426426

427-
428-
this.selectedIndex = index;
429-
this.value = value;
430-
431427
if (
432428
opt_isDispatch === true
433429
&& this.onchange( value, selected ) === false
434430
) {
435431
return;
436432
}
437-
433+
434+
this.selectedIndex = index;
435+
this.value = value;
436+
438437
this._repaint();
439438
},
440439

0 commit comments

Comments
 (0)