From 913c0a9481b1d2ab5e923778a01e291ec7be026f Mon Sep 17 00:00:00 2001 From: Brady Lamansky Date: Thu, 2 Jul 2026 14:14:50 -0500 Subject: [PATCH 1/3] theme 2845 record-list fixes --- src/components/form/dt-connection/dt-connection.js | 1 + .../form/dt-location-map/dt-location-map.js | 2 ++ src/components/form/dt-location/dt-location.js | 1 + src/components/form/dt-multi-text/dt-multi-text.js | 1 + src/components/form/dt-textarea/dt-textarea.js | 13 +++++++++++++ .../form/dt-textarea/dt-textarea.stories.js | 6 +++++- .../form/dt-users-connection/dt-users-connection.js | 1 + 7 files changed, 24 insertions(+), 1 deletion(-) diff --git a/src/components/form/dt-connection/dt-connection.js b/src/components/form/dt-connection/dt-connection.js index 5e66c62..b9430b6 100644 --- a/src/components/form/dt-connection/dt-connection.js +++ b/src/components/form/dt-connection/dt-connection.js @@ -108,6 +108,7 @@ export class DtConnection extends DtTags { clickedValue = intVal; } const event = new CustomEvent('change', { + bubbles: true, detail: { field: this.name, oldValue: this.value, diff --git a/src/components/form/dt-location-map/dt-location-map.js b/src/components/form/dt-location-map/dt-location-map.js index 6f1623d..0a8a753 100644 --- a/src/components/form/dt-location-map/dt-location-map.js +++ b/src/components/form/dt-location-map/dt-location-map.js @@ -148,6 +148,7 @@ export class DtLocationMap extends DtFormBase { selectLocation(evt) { const event = new CustomEvent('change', { + bubbles: true, detail: { field: this.name, oldValue: this.value, @@ -184,6 +185,7 @@ export class DtLocationMap extends DtFormBase { deleteItem(evt) { this.activeItem = undefined; const event = new CustomEvent('change', { + bubbles: true, detail: { field: this.name, oldValue: this.value, diff --git a/src/components/form/dt-location/dt-location.js b/src/components/form/dt-location/dt-location.js index 4416e62..eda65e8 100644 --- a/src/components/form/dt-location/dt-location.js +++ b/src/components/form/dt-location/dt-location.js @@ -84,6 +84,7 @@ export class DtLocation extends DtTags { _remove(e) { if (e.target && e.target.dataset && e.target.dataset.value) { const event = new CustomEvent('change', { + bubbles: true, detail: { field: this.name, oldValue: this.value, diff --git a/src/components/form/dt-multi-text/dt-multi-text.js b/src/components/form/dt-multi-text/dt-multi-text.js index ab5e593..6281bc9 100644 --- a/src/components/form/dt-multi-text/dt-multi-text.js +++ b/src/components/form/dt-multi-text/dt-multi-text.js @@ -274,6 +274,7 @@ export class DtMultiText extends DtText { const key = e?.currentTarget?.dataset?.key; if (key) { const event = new CustomEvent('change', { + bubbles: true, detail: { field: this.name, oldValue: this.value, diff --git a/src/components/form/dt-textarea/dt-textarea.js b/src/components/form/dt-textarea/dt-textarea.js index cd589ad..2864ce6 100644 --- a/src/components/form/dt-textarea/dt-textarea.js +++ b/src/components/form/dt-textarea/dt-textarea.js @@ -56,6 +56,16 @@ export class DtTextArea extends DtFormBase { width: 100%; } input:disabled, + input::placeholder { + color: var( + --dt-text-placeholder-color, + var(--dt-form-placeholder-color, #999) + ); + text-transform: var(--dt-text-placeholder-transform, none); + font-size: var(--dt-text-placeholder-font-size, 1rem); + font-weight: var(--dt-text-placeholder-font-weight, 400); + letter-spacing: var(--dt-text-placeholder-letter-spacing, normal); + } input[readonly], textarea:disabled, textarea[readonly] { @@ -81,6 +91,8 @@ export class DtTextArea extends DtFormBase { ...super.properties, /** Element ID */ id: { type: String }, + /** Placeholder displayed when no value is entered */ + placeholder: { type: String }, /** Value of field. Reflected back to attribute in order to select from DOM if needed. */ value: { type: String, @@ -150,6 +162,7 @@ export class DtTextArea extends DtFormBase {