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

pull/361/head
诛心 2021-09-08 20:12:57 +08:00
parent ac2b3ffbff
commit ab53e00a75
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();