mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
fix textarea value being lost
This commit is contained in:
@@ -208,7 +208,7 @@ export default class WaTextarea extends WebAwesomeFormAssociatedElement {
|
||||
}
|
||||
|
||||
private handleChange() {
|
||||
this.valueHasChanged = true
|
||||
this.valueHasChanged = true;
|
||||
this.value = this.input.value;
|
||||
this.setTextareaHeight();
|
||||
this.dispatchEvent(new WaChangeEvent());
|
||||
@@ -221,7 +221,7 @@ export default class WaTextarea extends WebAwesomeFormAssociatedElement {
|
||||
}
|
||||
|
||||
private handleInput() {
|
||||
this.valueHasChanged = true
|
||||
this.valueHasChanged = true;
|
||||
this.value = this.input.value;
|
||||
this.dispatchEvent(new WaInputEvent());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user