mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
fix issue with select, and build script issue
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user