@thecb/components 9.0.7-beta.2 → 9.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +4 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +4 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/form-select/FormSelect.js +3 -1
- package/src/components/atoms/form-select/index.d.ts +1 -0
package/package.json
CHANGED
|
@@ -23,7 +23,8 @@ const FormSelect = ({
|
|
|
23
23
|
hasTitles = false,
|
|
24
24
|
autocompleteValue, // browser autofill value, like country-name
|
|
25
25
|
smoothScroll = true, // whether the browser should animate scroll to selected item on first open
|
|
26
|
-
dataQa = null
|
|
26
|
+
dataQa = null,
|
|
27
|
+
widthFitOptions = false
|
|
27
28
|
}) => {
|
|
28
29
|
const [open, setOpen] = useState(false);
|
|
29
30
|
const dropdownRef = useRef(null);
|
|
@@ -73,6 +74,7 @@ const FormSelect = ({
|
|
|
73
74
|
"error message"
|
|
74
75
|
)}
|
|
75
76
|
maxHeight={dropdownMaxHeight}
|
|
77
|
+
widthFitOptions={widthFitOptions}
|
|
76
78
|
hasTitles={hasTitles}
|
|
77
79
|
placeholder={options[0] ? options[0].text : ""}
|
|
78
80
|
options={options}
|