mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 12:09:26 +00:00
fixes #760
This commit is contained in:
@@ -161,10 +161,8 @@ export default class SlInput extends LitElement {
|
||||
}
|
||||
|
||||
set valueAsDate(newValue: Date | null) {
|
||||
this.updateComplete.then(() => {
|
||||
this.input.valueAsDate = newValue;
|
||||
this.value = this.input.value;
|
||||
});
|
||||
this.input.valueAsDate = newValue;
|
||||
this.value = this.input.value;
|
||||
}
|
||||
|
||||
/** Gets or sets the current value as a number. */
|
||||
@@ -173,10 +171,8 @@ export default class SlInput extends LitElement {
|
||||
}
|
||||
|
||||
set valueAsNumber(newValue: number) {
|
||||
this.updateComplete.then(() => {
|
||||
this.input.valueAsNumber = newValue;
|
||||
this.value = this.input.value;
|
||||
});
|
||||
this.input.valueAsNumber = newValue;
|
||||
this.value = this.input.value;
|
||||
}
|
||||
|
||||
firstUpdated() {
|
||||
|
||||
Reference in New Issue
Block a user