@warp-ds/elements 2.0.0-next.4 → 2.0.0-next.5
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/dist/index.js
CHANGED
|
@@ -5552,6 +5552,9 @@ var WarpSelect = class extends kebabCaseAttributes(WarpElement15) {
|
|
|
5552
5552
|
activateI18n7(messages45, messages47, messages46, messages44);
|
|
5553
5553
|
this._options = this.innerHTML;
|
|
5554
5554
|
}
|
|
5555
|
+
firstUpdated() {
|
|
5556
|
+
this.autoFocus && this.shadowRoot.querySelector("select").focus();
|
|
5557
|
+
}
|
|
5555
5558
|
handleKeyDown(event) {
|
|
5556
5559
|
if (this.readOnly && (event.key === " " || event.key === "ArrowDown" || event.key === "ArrowUp")) {
|
|
5557
5560
|
event.preventDefault();
|
|
@@ -5579,7 +5582,6 @@ var WarpSelect = class extends kebabCaseAttributes(WarpElement15) {
|
|
|
5579
5582
|
<select
|
|
5580
5583
|
class="${__privateGet(this, _WarpSelect_instances, classes_get)}"
|
|
5581
5584
|
id="${__privateGet(this, _WarpSelect_instances, id_get)}"
|
|
5582
|
-
?autofocus=${this.autoFocus}
|
|
5583
5585
|
?disabled=${this.disabled}
|
|
5584
5586
|
aria-describedby="${ifDefined5(__privateGet(this, _WarpSelect_instances, helpId_get))}"
|
|
5585
5587
|
aria-invalid="${ifDefined5(this.invalid)}"
|