kr-elements 0.0.1-alpha.22 → 0.0.1-alpha.24
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.
|
@@ -117,9 +117,9 @@ class ComboboxMarkup {
|
|
|
117
117
|
const userTagTemplate = this.#shadowRoot.host.firstElementChild;
|
|
118
118
|
if (userTagTemplate && userTagTemplate instanceof HTML_combobox_tag_element_js_1.HTMLComboboxTagElement) {
|
|
119
119
|
const tag = userTagTemplate.cloneNode(true);
|
|
120
|
-
|
|
120
|
+
tag.querySelectorAll('[part]')
|
|
121
121
|
.forEach(node => {
|
|
122
|
-
const relatedPart =
|
|
122
|
+
const relatedPart = option.querySelector(`[part*="${node.getAttribute('part')}"]`);
|
|
123
123
|
if (relatedPart) {
|
|
124
124
|
tag.replaceChild(node.cloneNode(true), relatedPart);
|
|
125
125
|
}
|
|
@@ -114,9 +114,9 @@ export class ComboboxMarkup {
|
|
|
114
114
|
const userTagTemplate = this.#shadowRoot.host.firstElementChild;
|
|
115
115
|
if (userTagTemplate && userTagTemplate instanceof HTMLComboboxTagElement) {
|
|
116
116
|
const tag = userTagTemplate.cloneNode(true);
|
|
117
|
-
|
|
117
|
+
tag.querySelectorAll('[part]')
|
|
118
118
|
.forEach(node => {
|
|
119
|
-
const relatedPart =
|
|
119
|
+
const relatedPart = option.querySelector(`[part*="${node.getAttribute('part')}"]`);
|
|
120
120
|
if (relatedPart) {
|
|
121
121
|
tag.replaceChild(node.cloneNode(true), relatedPart);
|
|
122
122
|
}
|