@luftborn/custom-elements 2.10.0 → 2.11.0
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/demo/index.js +5 -2
- package/demo/index.min.js +4 -1
- package/demo/index.min.js.map +1 -1
- package/dist/elements/DropDownList/DropDownListElement.d.ts +1 -1
- package/dist/elements/DropDownList/DropDownListElement.js +4 -1
- package/dist/elements/DropDownList/DropDownListElement.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/DropDownList/DropDownListElement.ts +5 -2
package/demo/index.min.js
CHANGED
|
@@ -4136,6 +4136,9 @@ var DropDownListElement = /** @class */ (function (_super) {
|
|
|
4136
4136
|
}
|
|
4137
4137
|
Object.defineProperty(DropDownListElement.prototype, "value", {
|
|
4138
4138
|
get: function () {
|
|
4139
|
+
if (this.multi) {
|
|
4140
|
+
return Array.from(this.select.selectedOptions).map(function (option) { return option.value; }).join(', ');
|
|
4141
|
+
}
|
|
4139
4142
|
return "" + this.select.value;
|
|
4140
4143
|
},
|
|
4141
4144
|
set: function (value) {
|
|
@@ -4156,7 +4159,7 @@ var DropDownListElement = /** @class */ (function (_super) {
|
|
|
4156
4159
|
_super.prototype.connectedCallback.call(this);
|
|
4157
4160
|
};
|
|
4158
4161
|
DropDownListElement.prototype.initChildInputs = function () {
|
|
4159
|
-
this.select =
|
|
4162
|
+
this.select = this.shadowRoot.querySelector('select');
|
|
4160
4163
|
this.addOptions();
|
|
4161
4164
|
if (this.required) {
|
|
4162
4165
|
this.select.setAttribute('required', '');
|