Et2SelectCountry: Fix limited size of search box

There was a conflict between flag style & search styles.  Now using a specific element for the current value flag instead of styling the whole slot.
This commit is contained in:
nathan 2022-08-26 11:48:02 -06:00
parent 23977d6c21
commit 234b2c78b9
2 changed files with 278 additions and 270 deletions

View File

@ -42,6 +42,18 @@ export class Et2SelectCountry extends Et2StaticSelectMixin(Et2Select)
this.requestUpdate("select_options");
});
}
connectedCallback()
{
super.connectedCallback();
// Add element for current value flag
this.querySelector("[slot=prefix].tag_image")?.remove();
let image = document.createElement("span");
image.slot = "prefix";
image.classList.add("tag_image", "flag");
this.appendChild(image);
}
}
/**

File diff suppressed because it is too large Load Diff