alexanderroese 2024-06-23 11:34:26 +02:00
commit ed40286bd9
1 changed files with 11 additions and 2 deletions

View File

@ -128,6 +128,15 @@
opacity: 0.35;
}
.invisibleInput {
position: absolute;
pointer-events: none;
width: 1px;
height: 1px;
opacity: 0;
}
</style>
<script type="text/javascript">
@ -534,10 +543,10 @@
this.requiredPlaceholder = document.createElement('input');
this.requiredPlaceholder.type = 'text';
this.requiredPlaceholder.style.display = 'none';
this.requiredPlaceholder.required = true;
this.requiredPlaceholder.classList.add('invisibleInput');
this.requiredPlaceholder.setAttribute('form', 'product-form-' + this.section_id);
this.requiredPlaceholder.name = 'properties[Text]';
this.requiredPlaceholder.required = true;
this.requiredPlaceholder.value = '';
this.Viewer3DContainer.appendChild(this.requiredPlaceholder);