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