From 12f42da5ddd46cc5b881c68bcf526e5209d63517 Mon Sep 17 00:00:00 2001 From: jkuehner Date: Thu, 31 Oct 2024 00:48:46 +0100 Subject: [PATCH] text area def --- src/PropertyGrid.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/PropertyGrid.ts b/src/PropertyGrid.ts index 818570b..2019bce 100644 --- a/src/PropertyGrid.ts +++ b/src/PropertyGrid.ts @@ -273,6 +273,8 @@ export class PropertyGrid extends BaseCustomWebComponentConstructorAppend { ctl.value = pInfo.defaultValue; } else if (pInfo.defaultValue != null && ctl instanceof HTMLSelectElement && ctl.value == '' && !pInfo.nullable) { ctl.value = pInfo.defaultValue; + } else if (pInfo.defaultValue != null && ctl instanceof HTMLTextAreaElement && ctl.value == '' && !pInfo.nullable) { + ctl.value = pInfo.defaultValue; } ctl.style.flexGrow = '1'; ctl.style.width = '100%';