cr-ui-lib 1.1.111 → 1.1.112
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.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3629,7 +3629,7 @@ function SingleSelectDropdown({
|
|
|
3629
3629
|
}
|
|
3630
3630
|
};
|
|
3631
3631
|
const openList = () => {
|
|
3632
|
-
if (!disabled) {
|
|
3632
|
+
if (!disabled && !isOpen) {
|
|
3633
3633
|
setIsOpen(true);
|
|
3634
3634
|
}
|
|
3635
3635
|
};
|
|
@@ -3839,6 +3839,7 @@ function SingleSelectDropdown({
|
|
|
3839
3839
|
type: "text",
|
|
3840
3840
|
autoFocus: true,
|
|
3841
3841
|
onClick: openList,
|
|
3842
|
+
onFocus: openList,
|
|
3842
3843
|
className: tailwindMerge.twMerge(
|
|
3843
3844
|
"input-placeholder-ellipsis w-full pr-[30px] h-[48px] px-2 py-1 rounded-md border border-gray-300 text-sm focus:border-1 focus:border-[#4683B4] focus:outline-none",
|
|
3844
3845
|
searchInputClass,
|