form修复form.val中下拉的值不在可选范围的时候点击下拉的title弹出的选项默认选中最后一项的问题

pull/1172/head
sunxiaobin89 2022-12-01 22:35:29 +08:00
parent efe753d0b8
commit 8fbea1ab6a
1 changed files with 1 additions and 0 deletions

View File

@ -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);