From e811c549fd851fd76d2592994e11f1eb9729c3c4 Mon Sep 17 00:00:00 2001 From: John Livingston Date: Tue, 11 Jun 2024 18:01:29 +0200 Subject: [PATCH] Fix checkbox. --- client/common/configuration/elements/channel-configuration.ts | 2 +- client/common/lib/elements/dynamic-table-form.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/common/configuration/elements/channel-configuration.ts b/client/common/configuration/elements/channel-configuration.ts index 619d33a0..2dfe5426 100644 --- a/client/common/configuration/elements/channel-configuration.ts +++ b/client/common/configuration/elements/channel-configuration.ts @@ -308,7 +308,7 @@ export class ChannelConfigurationElement extends LivechatElement { this.requestUpdate('_channelConfiguration') } } - .value=${this._channelConfiguration?.configuration.bot.enabled} + value="1" ?checked=${this._channelConfiguration?.configuration.bot.enabled} /> ${ptTr(LOC_LIVECHAT_CONFIGURATION_CHANNEL_ENABLE_BOT_LABEL)} diff --git a/client/common/lib/elements/dynamic-table-form.ts b/client/common/lib/elements/dynamic-table-form.ts index 0267397a..3f99c5d5 100644 --- a/client/common/lib/elements/dynamic-table-form.ts +++ b/client/common/lib/elements/dynamic-table-form.ts @@ -597,7 +597,7 @@ export class DynamicTableFormElement extends LivechatElement { id=${inputId} aria-describedby="${inputId}-feedback" @change=${(event: Event) => this._updatePropertyFromValue(event, propertyName, propertySchema, rowId)} - .value=${propertyValue} + value="1" ?checked=${propertyValue} />` }