dhre-ui-kit 2.0.21 → 2.0.22
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/lib/components/dropDown/DropDown.d.ts +2 -0
- package/lib/index.js +10 -2
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +10 -2
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -9825,6 +9825,8 @@ const CustomDropdown = (props) => {
|
|
|
9825
9825
|
iconColor,
|
|
9826
9826
|
itemTextStyle,
|
|
9827
9827
|
onValueChange,
|
|
9828
|
+
onFocus,
|
|
9829
|
+
onBlur,
|
|
9828
9830
|
itemContainerStyle,
|
|
9829
9831
|
menuContainerStyle,
|
|
9830
9832
|
activeColor,
|
|
@@ -9897,8 +9899,14 @@ const CustomDropdown = (props) => {
|
|
|
9897
9899
|
valueField,
|
|
9898
9900
|
placeholder: keepPlaceholderOnFocus || !isFocus ? placeholder : "",
|
|
9899
9901
|
value,
|
|
9900
|
-
onFocus: () =>
|
|
9901
|
-
|
|
9902
|
+
onFocus: () => {
|
|
9903
|
+
setIsFocus(true);
|
|
9904
|
+
onFocus?.();
|
|
9905
|
+
},
|
|
9906
|
+
onBlur: () => {
|
|
9907
|
+
setIsFocus(false);
|
|
9908
|
+
onBlur?.();
|
|
9909
|
+
},
|
|
9902
9910
|
onChange: handleValueChange,
|
|
9903
9911
|
iconColor,
|
|
9904
9912
|
dropdownPosition: "bottom",
|