Skip to content

Commit

Permalink
fix(textarea): emit odsValueChange on value change
Browse files Browse the repository at this point in the history
  • Loading branch information
Leotheluck authored and aesteves60 committed Oct 2, 2023
1 parent d828b4e commit 753749f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@ export class OsdsTextArea implements OdsTextAreaAttribute, OdsTextAreaEvent, Ods
*/
emitChange(value: HTMLTextAreaElement['value'], oldValue?: HTMLTextAreaElement['value']): void {
this.odsValueChange.emit({
oldValue: oldValue == null ? oldValue : `${oldValue}`,
oldValue: oldValue === null ? oldValue : `${oldValue}`,
validity: this.controller.getTextAreaValidity(),
value: value == null ? value : `${value}`,
value: value === null ? value : `${value}`,
});
}

Expand Down

0 comments on commit 753749f

Please sign in to comment.