Skip to content

Commit

Permalink
Merge pull request #722 from folio-org/UISACQCOMP-164
Browse files Browse the repository at this point in the history
UISACQCOMP-164 Add inputType prop to <SingleSearchForm> to make Inventory Browse search box a textarea
  • Loading branch information
BogdanDenis authored Oct 30, 2023
2 parents 4a25f88 + 6233d41 commit 4c1447f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## (5.1.0 IN PROGRESS)

* Sort the list of countries based on the current locale. Refs UISACQCOMP-164.
* Add `inputType` prop to `<SingleSearchForm>`. Refs UISACQCOMP-165.

## [5.0.0](https://github.com/folio-org/stripes-acq-components/tree/v5.0.0) (2023-10-12)
[Full Changelog](https://github.com/folio-org/stripes-acq-components/compare/v4.0.2...v5.0.0)
Expand Down
6 changes: 6 additions & 0 deletions lib/AcqList/SingleSearchForm/SingleSearchForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const SingleSearchForm = ({
selectedIndex,
changeSearchIndex,
searchableOptions,
inputType,
}) => {
const [translatedSearchableIndexes, setTranslatedSearchableIndexes] = useState();
const intl = useIntl();
Expand Down Expand Up @@ -96,6 +97,10 @@ const SingleSearchForm = ({
searchableOptions={searchableOptions}
searchableIndexesPlaceholder={searchableIndexesPlaceholder}
selectedIndex={selectedIndex}
inputType={inputType}
lockWidth
newLineOnShiftEnter
onSubmitSearch={submitSearch}
/>

<Button
Expand Down Expand Up @@ -135,6 +140,7 @@ SingleSearchForm.propTypes = {
]),
selectedIndex: PropTypes.string,
changeSearchIndex: PropTypes.func,
inputType: PropTypes.string,
};

SingleSearchForm.defaultProps = {
Expand Down

0 comments on commit 4c1447f

Please sign in to comment.