diff --git a/src/renderer/src/stories/JSONSchemaInput.js b/src/renderer/src/stories/JSONSchemaInput.js index 41a6dd368..176fddd34 100644 --- a/src/renderer/src/stories/JSONSchemaInput.js +++ b/src/renderer/src/stories/JSONSchemaInput.js @@ -112,9 +112,7 @@ export class JSONSchemaInput extends LitElement { // onValidate = () => {} updateData(value, forceValidate = false) { - if (this.value !== value && !forceValidate) { - // Update the actual input element const el = this.getElement(); if (el.type === "checkbox") el.checked = value; @@ -125,7 +123,7 @@ export class JSONSchemaInput extends LitElement { }) : []; else if (el instanceof Search) el.shadowRoot.querySelector("input").value = value; - else el.value = value + else el.value = value; } const { path: fullPath } = this; @@ -161,7 +159,6 @@ export class JSONSchemaInput extends LitElement { this.value = value; // Update the latest value this.#activateTimeoutValidation(name, path); - }; #triggerValidation = (name, path) => { diff --git a/src/renderer/src/stories/Search.js b/src/renderer/src/stories/Search.js index e75e5dc94..f39197608 100644 --- a/src/renderer/src/stories/Search.js +++ b/src/renderer/src/stories/Search.js @@ -186,7 +186,6 @@ export class Search extends LitElement { }); this.#initialize(); - } onSelect = (id, value) => {}; @@ -220,7 +219,6 @@ export class Search extends LitElement { #sortedCategories = []; #populate = (input) => { - const toShow = []; // Check if the input value matches the label