kahuna-base-react-components 1.2.8 → 1.2.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kahuna-base-react-components",
3
- "version": "1.2.8",
3
+ "version": "1.2.9",
4
4
  "description": "Kahuna Base React Components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -79,6 +79,7 @@ KDropdownSingle.args = {
79
79
  placeholder: "Select single...",
80
80
  isClearable: true,
81
81
  isEllipsis: true,
82
+ selected: {label: "1", value: 1},
82
83
  allowContainerShrink: true,
83
84
  hideChosenOptionIcon: true,
84
85
  onBlur: (value: any) => {
@@ -73,6 +73,7 @@ const KDropdown: React.FC<KDropdownProps> = (props) => {
73
73
 
74
74
  setBackground(background)
75
75
  setBorder(border)
76
+ setSelectedOption(props.selected)
76
77
  }, [props.selected])
77
78
 
78
79
  const width = props.width || "100%"
@@ -242,6 +243,7 @@ const KDropdown: React.FC<KDropdownProps> = (props) => {
242
243
  }}
243
244
  filterOption={customFilterOption}
244
245
  isClearable={isClearable}
246
+ value={selectedOption}
245
247
  hideSelectedOptions={!isMulti ? false : showOnlyIconsInMulti ? false : true}
246
248
  styles={{
247
249
  control: (baseStyles, state) => ({