mirror of https://github.com/layui/layui
form修复form.val中下拉的值不在可选范围的时候点击下拉的title弹出的选项默认选中最后一项的问题
parent
efe753d0b8
commit
8fbea1ab6a
|
@ -259,6 +259,7 @@ layui.define(['layer', 'util'], function(exports){
|
|||
,dlHeight = dl.outerHeight();
|
||||
|
||||
index = select[0].selectedIndex; // 获取最新的 selectedIndex
|
||||
index === -1 && (index = 0);
|
||||
reElem.addClass(CLASS+'ed');
|
||||
dds.removeClass(HIDE);
|
||||
dts.removeClass(HIDE);
|
||||
|
|
Loading…
Reference in New Issue