File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import RBFormSelect from 'react-bootstrap/FormSelect';
8
8
* list of dictionaries with keys label, value and disabled.
9
9
*/
10
10
const Select = props => {
11
- const { className, class_name, ...otherProps } = props ;
11
+ const { className, class_name, html_size , ...otherProps } = props ;
12
12
13
13
const handleChange = e => {
14
14
if ( props . setProps ) {
@@ -31,6 +31,7 @@ const Select = props => {
31
31
) }
32
32
onChange = { handleChange }
33
33
className = { class_name || className }
34
+ htmlSize = { html_size }
34
35
>
35
36
< option value = "" disabled hidden >
36
37
{ props . placeholder }
@@ -167,6 +168,13 @@ Select.propTypes = {
167
168
*/
168
169
size : PropTypes . string ,
169
170
171
+ /**
172
+ * This represents the number of rows in the select that should be visible at
173
+ * one time. It will result in the Select being rendered as a scrolling list
174
+ * box rather than a dropdown.
175
+ */
176
+ html_size : PropTypes . string ,
177
+
170
178
/**
171
179
* Used to allow user interactions in this component to be persisted when
172
180
* the component - or the page - is refreshed. If `persisted` is truthy and
You can’t perform that action at this time.
0 commit comments