saasufy-components 8.2.2 → 8.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/input-provider.js +1 -1
- package/model-input.js +1 -1
- package/package.json +1 -1
package/input-provider.js
CHANGED
|
@@ -143,7 +143,7 @@ class InputProvider extends HTMLElement {
|
|
|
143
143
|
if (option.field === placeholder) {
|
|
144
144
|
return `<option value="" selected class="select-default-option">${option.field}</option>`;
|
|
145
145
|
}
|
|
146
|
-
return `<option value="${option.value}">${option.field}</option>`;
|
|
146
|
+
return `<option value="${option.value ?? option.field}">${option.field}</option>`;
|
|
147
147
|
})
|
|
148
148
|
.join('');
|
|
149
149
|
this.inputElement.innerHTML = optionElements;
|
package/model-input.js
CHANGED
|
@@ -214,7 +214,7 @@ class ModelInput extends SocketConsumer {
|
|
|
214
214
|
if (option.field === placeholder) {
|
|
215
215
|
return `<option value="" selected class="select-default-option">${option.field}</option>`;
|
|
216
216
|
}
|
|
217
|
-
return `<option value="${option.value}">${option.field}</option>`;
|
|
217
|
+
return `<option value="${option.value ?? option.field}">${option.field}</option>`;
|
|
218
218
|
})
|
|
219
219
|
.join('');
|
|
220
220
|
this.inputElement.innerHTML = optionElements;
|