Skip to content

Commit

Permalink
fix(textarea): remove 100% width when flex is removed (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
skhamvon authored Jun 27, 2023
1 parent d9b3900 commit 5a4563e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ export class OsdsTextArea implements OdsTextArea<OdsStencilMethods<OdsTextAreaMe
onFlexChange(flex: boolean) {
if (flex && this.textInputEl?.style?.width) {
this.textInputEl.style.width = '100%';
} else {
this.textInputEl?.style.removeProperty('width');
}
}

Expand Down

0 comments on commit 5a4563e

Please sign in to comment.