Skip to content

Commit

Permalink
Merge branch 'loose-select-dropdown' of https://github.com/NeurodataW…
Browse files Browse the repository at this point in the history
…ithoutBorders/nwb-guide into loose-select-dropdown
  • Loading branch information
garrettmflynn committed Nov 21, 2023
2 parents c279d62 + 4b7dff2 commit dd307d7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 1 addition & 4 deletions src/renderer/src/stories/JSONSchemaInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -161,7 +159,6 @@ export class JSONSchemaInput extends LitElement {
this.value = value; // Update the latest value

this.#activateTimeoutValidation(name, path);

};

#triggerValidation = (name, path) => {
Expand Down
2 changes: 0 additions & 2 deletions src/renderer/src/stories/Search.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ export class Search extends LitElement {
});

this.#initialize();

}

onSelect = (id, value) => {};
Expand Down Expand Up @@ -220,7 +219,6 @@ export class Search extends LitElement {
#sortedCategories = [];

#populate = (input) => {

const toShow = [];

// Check if the input value matches the label
Expand Down

0 comments on commit dd307d7

Please sign in to comment.