auto-patch 16-dev-dev01-2024-06-15T02_53_05
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user