!361 修复fieldlist在初始值为空时,不会绑定fa.event.refreshfieldlist事件

Merge pull request !361 from 诛心/fieldlist
pull/369/head
Karson 2021-10-20 08:06:16 +00:00 committed by Gitee
commit a87cfefd50
1 changed files with 0 additions and 3 deletions

View File

@ -358,9 +358,6 @@ define(['jquery', 'bootstrap', 'upload', 'validator', 'validator-lang'], functio
placeHolderTemplate: $("<" + tagName + "/>")
});
var textarea = $("textarea[name='" + $(this).data("name") + "']", form);
if (textarea.val() == '') {
return true;
}
var template = $(this).data("template");
textarea.on("fa.event.refreshfieldlist", function () {
$("[fieldlist-item]", container).remove();