@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.
- package/dist/cjs/pennlibs-autocomplete.pennlibs-footer.pennlibs-header.entry.cjs.js.map +1 -1
- package/dist/cjs/pennlibs-autocomplete_3.cjs.entry.js +2 -1
- package/dist/cjs/pennlibs-autocomplete_3.cjs.entry.js.map +1 -1
- package/dist/collection/components/pennlibs-autocomplete/pennlibs-autocomplete.js +2 -1
- package/dist/collection/components/pennlibs-autocomplete/pennlibs-autocomplete.js.map +1 -1
- package/dist/components/pennlibs-autocomplete.js +2 -1
- package/dist/components/pennlibs-autocomplete.js.map +1 -1
- package/dist/docs.json +1 -1
- package/dist/esm/pennlibs-autocomplete.pennlibs-footer.pennlibs-header.entry.js.map +1 -1
- package/dist/esm/pennlibs-autocomplete_3.entry.js +2 -1
- package/dist/esm/pennlibs-autocomplete_3.entry.js.map +1 -1
- package/dist/web/{p-d01979e8.entry.js → p-40119068.entry.js} +3 -2
- package/dist/web/p-40119068.entry.js.map +1 -0
- package/dist/web/pennlibs-autocomplete.pennlibs-footer.pennlibs-header.entry.esm.js.map +1 -1
- package/dist/web/web.esm.js +1 -1
- package/hydrate/index.js +2 -1
- package/hydrate/index.mjs +2 -1
- package/package.json +1 -1
- package/dist/web/p-d01979e8.entry.js.map +0 -1
|
@@ -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: '
|
|
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
|
};
|