Skip to content

Commit

Permalink
Merge branch 'main' into update-truss
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon authored Mar 16, 2024
2 parents e2d1d9a + af47692 commit 6c90095
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@homebound/beam",
"version": "2.337.0",
"version": "2.337.1",
"author": "Homebound",
"license": "MIT",
"main": "dist/index.js",
Expand Down
6 changes: 5 additions & 1 deletion src/inputs/TreeSelectField/TreeSelectField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,11 @@ function TreeSelectFieldBase<O, V extends Value>(props: TreeSelectFieldProps<O,
}
if (isOpen) {
// reset the input field to allow the user to start typing to filter
setFieldState((prevState) => ({ ...prevState, inputValue: "" }));
setFieldState((prevState) => ({
...prevState,
inputValue: "",
filteredOptions: initialOptions.flatMap((o) => levelOptions(o, 0)),
}));
}
}

Expand Down
1 change: 1 addition & 0 deletions src/inputs/internal/ComboBoxBase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ export function ComboBoxBase<O, V extends Value>(props: ComboBoxBaseProps<O, V>)
} else {
setFieldState((prevState) => ({
...prevState,
searchValue: "",
inputValue: getInputValue(selectedOptions, getOptionLabel, multiselect, nothingSelectedText, isReadOnly),
}));
}
Expand Down

0 comments on commit 6c90095

Please sign in to comment.