auto-patch 16-dev-dev01-2024-06-15T02_53_05

This commit is contained in:
root
2024-06-15 02:53:05 +00:00
parent 494719fadc
commit 3d93e1b9f1
9 changed files with 1250 additions and 1246 deletions

View File

@@ -155,12 +155,16 @@
* but it's not yet supported in Safari.
*/
connectedCallback() {
let inputs = '';
this.innerHTML = '';
const inputs = new DocumentFragment();
for( const fieldName of this._fieldNames ) {
const value = stringifyFalsyInputValue( this.values[ fieldName ] );
inputs += `<input type="hidden" name="${params.prefix}${fieldName}" value="${value}"/>`;
const input = document.createElement( 'input' );
input.type = 'hidden';
input.name = `${params.prefix}${fieldName}`;
input.value = stringifyFalsyInputValue( ( this.values && this.values[ fieldName ] ) || '' );
inputs.appendChild( input );
}
this.innerHTML = inputs;
this.appendChild( inputs );
}
/**