@penn-libraries/web 1.1.0-dev.3 → 1.1.0-dev.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.
@@ -80,6 +80,7 @@ const Autocomplete = class {
80
80
  input.setAttribute('aria-controls', 'listbox');
81
81
  }
82
82
  handleSlotChange() {
83
+ this.options = this.parseOptionsFromDOM();
83
84
  this.setupInput();
84
85
  }
85
86
  handleInputEvent(event) {
@@ -238,7 +239,7 @@ const Autocomplete = class {
238
239
  return this.showSuggestions && this.options.length > 0 && this.isInputFocused();
239
240
  }
240
241
  render() {
241
- return (index.h("div", { key: 'e9930f2c664cf797d7ae2c11e1e88b36999f2c18' }, index.h("slot", { key: '6ffec835f864edb06e55358d42527ca7e8f64cce', name: "start" }), this.shouldShowListbox() && (index.h("ol", { key: '3563eebbd21a5a25986238ae3c600981e18b4c5f', role: "listbox", id: "listbox" }, this.options.map((option, index$1) => (index.h("li", { role: "option", id: option.id, "aria-selected": this.currentIndex === index$1 ? 'true' : 'false', tabindex: "-1", onClick: () => this.handleOptionClick(index$1), innerHTML: option.html })))))));
242
+ return (index.h("div", { key: 'c9d88ed9a19ef99b53d0849d03c0a64d4e08a39c' }, index.h("slot", { key: 'bc5c0c3e42f40269818cd7a8f78ec4bb5f5f0d49', name: "start" }), this.shouldShowListbox() && (index.h("ol", { key: '4ad4f80d38a7de2537f343ec02e1bad3e5c2b100', role: "listbox", id: "listbox" }, this.options.map((option, index$1) => (index.h("li", { role: "option", id: option.id, "aria-selected": this.currentIndex === index$1 ? 'true' : 'false', tabindex: "-1", onClick: () => this.handleOptionClick(index$1), innerHTML: option.html })))))));
242
243
  }
243
244
  get el() { return index.getElement(this); }
244
245
  };