!508 修复重置按钮多选没有清空的问题

Merge pull request !508 from 御宅男(YznCMS官方)/Branch_f804c8a6
pull/509/MERGE
Karson 2025-08-18 02:16:34 +00:00 committed by Gitee
commit 30c803f761
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 7 additions and 3 deletions

View File

@ -134,9 +134,13 @@ define(['jquery', 'bootstrap', 'upload', 'validator', 'validator-lang'], functio
$(form).on("reset", function () {
setTimeout(function () {
$(".selectpage", form).each(function () {
var selectpage = $(this).data("selectPageObject");
selectpage.elem.hidden.val($(this).val());
$(this).selectPageRefresh();
if($(this).val()){
var selectpage = $(this).data("selectPageObject");
selectpage.elem.hidden.val($(this).val());
$(this).selectPageRefresh();
}else{
$(this).selectPageClear();
}
});
}, 1);
});