moved tool addition for remote file to render time

This commit is contained in:
dcore94 2023-10-27 15:30:11 +02:00
parent 1d52dc9fb8
commit b891562705
1 changed files with 1 additions and 0 deletions

View File

@ -579,6 +579,7 @@ class CCPRemoteFileInputWidgetController extends CCPBaseInputWidgetController{
}
content(){
this.addToolContent()
if(this.value.length <= 1){
return `
<input data-index="0" value="${this.value.length ? this.value[0] : ''}" class="my-2 form-control" placeholder="${this.title}" type="${this.type}" name="${this.name}" ${this.readonly ? 'readonly' : ''} ${this.required ? 'required' : ''}/>`