dhre-ui-kit 0.0.328 → 0.0.329
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/index.d.ts +1 -0
- package/lib/index.js +4 -2
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +4 -2
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -659,6 +659,7 @@ interface CustomDropdownProps {
|
|
|
659
659
|
activeColor?: string;
|
|
660
660
|
renderRightIcon?: (visible?: boolean) => JSX.Element | null;
|
|
661
661
|
disable?: boolean;
|
|
662
|
+
autoScroll?: boolean;
|
|
662
663
|
}
|
|
663
664
|
declare const CustomDropdown: (props: CustomDropdownProps) => React$1.JSX.Element;
|
|
664
665
|
|
package/lib/index.js
CHANGED
|
@@ -3596,7 +3596,8 @@ const CustomDropdown = (props) => {
|
|
|
3596
3596
|
activeColor,
|
|
3597
3597
|
keepPlaceholderOnFocus = false,
|
|
3598
3598
|
selectedItemTextStyle,
|
|
3599
|
-
disable
|
|
3599
|
+
disable,
|
|
3600
|
+
autoScroll = true
|
|
3600
3601
|
} = props;
|
|
3601
3602
|
const [value, setValue] = React.useState(defaultValue);
|
|
3602
3603
|
const [isFocus, setIsFocus] = React.useState(false);
|
|
@@ -3669,7 +3670,8 @@ const CustomDropdown = (props) => {
|
|
|
3669
3670
|
containerStyle: menuContainerStyle,
|
|
3670
3671
|
activeColor,
|
|
3671
3672
|
itemContainerStyle: [styles$8.itemListStyle, itemContainerStyle],
|
|
3672
|
-
disable
|
|
3673
|
+
disable,
|
|
3674
|
+
autoScroll
|
|
3673
3675
|
}
|
|
3674
3676
|
));
|
|
3675
3677
|
};
|