diff --git a/inlang/source-code/settings-component/src/stories/input-fields/array/default-array-input.ts b/inlang/source-code/settings-component/src/stories/input-fields/array/default-array-input.ts index 253713abf7..1cbb9a6d1b 100644 --- a/inlang/source-code/settings-component/src/stories/input-fields/array/default-array-input.ts +++ b/inlang/source-code/settings-component/src/stories/input-fields/array/default-array-input.ts @@ -83,8 +83,8 @@ export class DefaultArrayInput extends LitElement { if (this._inputValue && this._inputValue.trim() !== "") { this.value ? this.value.push(this._inputValue) : (this.value = [this._inputValue]) this.handleInlangProjectChange(this.value, this.property, this.moduleId) + this._inputValue = "null" this._inputValue = undefined - this.requestUpdate() } } @@ -92,8 +92,8 @@ export class DefaultArrayInput extends LitElement { if (this.value) { this.value.splice(index, 1) this.handleInlangProjectChange(this.value, this.property, this.moduleId) + this._inputValue = "null" this._inputValue = undefined - this.requestUpdate() } } diff --git a/inlang/source-code/settings-component/src/stories/input-fields/array/languageTags-input.ts b/inlang/source-code/settings-component/src/stories/input-fields/array/languageTags-input.ts index 8149aca6f6..5a4c5e0b28 100644 --- a/inlang/source-code/settings-component/src/stories/input-fields/array/languageTags-input.ts +++ b/inlang/source-code/settings-component/src/stories/input-fields/array/languageTags-input.ts @@ -95,8 +95,8 @@ export class LanguageTagsInput extends LitElement { if (this._inputValue && this._inputValue.trim() !== "") { this.value ? this.value.push(this._inputValue) : (this.value = [this._inputValue]) this.handleInlangProjectChange(this.value, this.property, this.moduleId) + this._inputValue = "null" this._inputValue = undefined - this.requestUpdate() } } @@ -104,8 +104,8 @@ export class LanguageTagsInput extends LitElement { if (this.value) { this.value.splice(index, 1) this.handleInlangProjectChange(this.value, this.property, this.moduleId) + this._inputValue = "null" this._inputValue = undefined - this.requestUpdate() } } diff --git a/inlang/source-code/settings-component/src/stories/input-fields/object/default-object-input.ts b/inlang/source-code/settings-component/src/stories/input-fields/object/default-object-input.ts index 6ce954709d..686b3b5388 100644 --- a/inlang/source-code/settings-component/src/stories/input-fields/object/default-object-input.ts +++ b/inlang/source-code/settings-component/src/stories/input-fields/object/default-object-input.ts @@ -116,9 +116,10 @@ export class DefaultObjectInput extends LitElement { } this.value[this._inputKey as any] = this._inputValue this.handleInlangProjectChange(this.value, this.property, this.moduleId) + this._inputValue = "null" this._inputValue = undefined + this._inputKey = "null" this._inputKey = undefined - this.requestUpdate() } } @@ -126,9 +127,10 @@ export class DefaultObjectInput extends LitElement { if (this.value) { delete this.value[key] this.handleInlangProjectChange(this.value, this.property, this.moduleId) + this._inputValue = "null" this._inputValue = undefined + this._inputKey = "null" this._inputKey = undefined - this.requestUpdate() } } diff --git a/inlang/source-code/settings-component/src/stories/input-fields/object/lint-rule-level-object-input.ts b/inlang/source-code/settings-component/src/stories/input-fields/object/lint-rule-level-object-input.ts index b979f0e7cc..cd4e4235cc 100644 --- a/inlang/source-code/settings-component/src/stories/input-fields/object/lint-rule-level-object-input.ts +++ b/inlang/source-code/settings-component/src/stories/input-fields/object/lint-rule-level-object-input.ts @@ -107,7 +107,9 @@ export class LintRuleLevelObjectInput extends LitElement { ) => { //TODO: workaround because select field was not updating setTimeout(() => { - this.requestUpdate() + const _value = this.value + this.value = {} + this.value = _value }) if (value && Object.keys(value).includes(id)) { return value[id]