File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
lib/AcqList/SingleSearchForm Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 5
5
* Sort the list of countries based on the current locale. Refs UISACQCOMP-164.
6
6
* Add ` inputType ` prop to ` <SingleSearchForm> ` . Refs UISACQCOMP-165.
7
7
* View the list of donors. Refs UISACQCOMP-166.
8
+ * Added ` indexRef ` and ` inputRef ` props to ` <SingleSearchForm> ` . Refs UISACQCOMP-167.
8
9
9
10
## [ 5.0.0] ( https://github.com/folio-org/stripes-acq-components/tree/v5.0.0 ) (2023-10-12)
10
11
[ Full Changelog] ( https://github.com/folio-org/stripes-acq-components/compare/v4.0.2...v5.0.0 )
Original file line number Diff line number Diff line change @@ -31,6 +31,8 @@ const SingleSearchForm = ({
31
31
changeSearchIndex,
32
32
searchableOptions,
33
33
inputType,
34
+ indexRef,
35
+ inputRef,
34
36
} ) => {
35
37
const [ translatedSearchableIndexes , setTranslatedSearchableIndexes ] = useState ( ) ;
36
38
const intl = useIntl ( ) ;
@@ -97,6 +99,8 @@ const SingleSearchForm = ({
97
99
searchableOptions = { searchableOptions }
98
100
searchableIndexesPlaceholder = { searchableIndexesPlaceholder }
99
101
selectedIndex = { selectedIndex }
102
+ indexRef = { indexRef }
103
+ inputRef = { inputRef }
100
104
inputType = { inputType }
101
105
lockWidth
102
106
newLineOnShiftEnter
@@ -141,6 +145,14 @@ SingleSearchForm.propTypes = {
141
145
selectedIndex : PropTypes . string ,
142
146
changeSearchIndex : PropTypes . func ,
143
147
inputType : PropTypes . string ,
148
+ indexRef : PropTypes . oneOfType ( [
149
+ PropTypes . func ,
150
+ PropTypes . shape ( { current : PropTypes . instanceOf ( Element ) } ) ,
151
+ ] ) ,
152
+ inputRef : PropTypes . oneOfType ( [
153
+ PropTypes . func ,
154
+ PropTypes . shape ( { current : PropTypes . instanceOf ( Element ) } ) ,
155
+ ] ) ,
144
156
} ;
145
157
146
158
SingleSearchForm . defaultProps = {
You can’t perform that action at this time.
0 commit comments