fix issue with select, and build script issue

This commit is contained in:
konnorrogers
2025-11-17 13:35:11 -05:00
parent ab0f2a1411
commit e9acddd54c
2 changed files with 5 additions and 1 deletions

View File

@@ -438,7 +438,6 @@ export async function build(options = {}) {
}
// copy everything to unbundled before we generate bundles.
await copy(getCdnDir(), getDistDir(), { overwrite: true });
await regenerateBundle();
// This needs to be outside of "isComponent" check because SSR needs to run on CSS files too.

View File

@@ -518,6 +518,8 @@ export default class WaSelect extends WebAwesomeFormAssociatedElement {
private handleClearClick(event: MouseEvent) {
event.stopPropagation();
this.hasInteracted = true
this.valueHasChanged = true
if (this.value !== null) {
this.setSelectedOptions([]);
@@ -603,6 +605,9 @@ export default class WaSelect extends WebAwesomeFormAssociatedElement {
if (this.disabled) return;
this.hasInteracted = true
this.valueHasChanged = true
// Use the directly provided option if available (from getTag method)
let option = directOption;