@warp-ds/elements 2.0.0-next.4 → 2.0.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.
@@ -45,6 +45,7 @@ export class WarpSelect extends WarpSelect_base {
45
45
  };
46
46
  static styles: any[];
47
47
  _options: any;
48
+ firstUpdated(): void;
48
49
  handleKeyDown(event: any): void;
49
50
  render(): import("lit").TemplateResult<1>;
50
51
  #private;
@@ -1809,6 +1809,9 @@ var WarpSelect = class extends kebabCaseAttributes(WarpElement) {
1809
1809
  activateI18n(messages2, messages4, messages3, messages);
1810
1810
  this._options = this.innerHTML;
1811
1811
  }
1812
+ firstUpdated() {
1813
+ this.autoFocus && this.shadowRoot.querySelector("select").focus();
1814
+ }
1812
1815
  handleKeyDown(event) {
1813
1816
  if (this.readOnly && (event.key === " " || event.key === "ArrowDown" || event.key === "ArrowUp")) {
1814
1817
  event.preventDefault();
@@ -1836,7 +1839,6 @@ var WarpSelect = class extends kebabCaseAttributes(WarpElement) {
1836
1839
  <select
1837
1840
  class="${__privateGet(this, _WarpSelect_instances, classes_get)}"
1838
1841
  id="${__privateGet(this, _WarpSelect_instances, id_get)}"
1839
- ?autofocus=${this.autoFocus}
1840
1842
  ?disabled=${this.disabled}
1841
1843
  aria-describedby="${ifDefined(__privateGet(this, _WarpSelect_instances, helpId_get))}"
1842
1844
  aria-invalid="${ifDefined(this.invalid)}"