fix(core): update

This commit is contained in:
Philipp Kunz 2023-10-07 20:01:49 +02:00
parent 7db91a2fe6
commit 466a24ac10
2 changed files with 5 additions and 2 deletions

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@design.estate/dees-catalog', name: '@design.estate/dees-catalog',
version: '1.0.218', version: '1.0.219',
description: 'website for lossless.com' description: 'website for lossless.com'
} }

View File

@ -269,7 +269,7 @@ export class DeesTable<T> extends DeesElement {
left: 0px; left: 0px;
position: absolute; position: absolute;
background: #fa610140; background: #fa610140;
color: inherit; color: ${cssManager.bdTheme('#333', '#fff')};
font-family: inherit; font-family: inherit;
font-size: inherit; font-size: inherit;
font-weight: inherit; font-weight: inherit;
@ -606,6 +606,8 @@ export class DeesTable<T> extends DeesElement {
async handleCellEditing(event: Event, itemArg: T, key: string) { async handleCellEditing(event: Event, itemArg: T, key: string) {
const domtools = await this.domtoolsPromise; const domtools = await this.domtoolsPromise;
const target = event.target as HTMLElement; const target = event.target as HTMLElement;
const originalColor = target.style.color;
target.style.color = 'transparent';
const transformedItem = this.displayFunction(itemArg); const transformedItem = this.displayFunction(itemArg);
const initialValue = (transformedItem[key] as unknown as string) || ''; const initialValue = (transformedItem[key] as unknown as string) || '';
// Create an input element // Create an input element
@ -621,6 +623,7 @@ export class DeesTable<T> extends DeesElement {
itemArg[key] = input.value as any; // Convert string to T (you might need better type casting depending on your data structure) itemArg[key] = input.value as any; // Convert string to T (you might need better type casting depending on your data structure)
} }
input.remove(); input.remove();
target.style.color = originalColor;
this.requestUpdate(); this.requestUpdate();
}; };