Skip to content

Commit

Permalink
UISACQCOMP-164 Add inputType prop to <SingleSearchForm>
Browse files Browse the repository at this point in the history
  • Loading branch information
BogdanDenis committed Oct 27, 2023
1 parent 4a25f88 commit 6233d41
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 6233d41

Please sign in to comment.