diff --git a/src/components/Dropdown/Item.tsx b/src/components/Dropdown/Item.tsx
index 8d8b52c0c..f316c2bd1 100644
--- a/src/components/Dropdown/Item.tsx
+++ b/src/components/Dropdown/Item.tsx
@@ -13,19 +13,19 @@ export function Item({ Icon, ...originalProps }: DropdownItemProps) {
const icon = useMemo(() => (Icon ? : undefined), [Icon])
const hasIcon = useMemo(() => Boolean(Icon), [Icon])
- return
+ return
}
// TODO We need to split that into multiple styled components as done in ``.
const StyledDropdownItem = styled(RsuiteDropdown.Item)<{
- hasIcon: boolean
+ $hasIcon: boolean
}>`
align-items: center;
display: flex;
font-size: 13px;
line-height: 1;
padding: 0.75rem;
- padding: ${p => (p.hasIcon ? '9px' : '12.5px')} 12px;
+ padding: ${p => (p.$hasIcon ? '9px' : '12.5px')} 12px;
&:not(:last-child) {
border-bottom: 1px solid var(--lightGray);
diff --git a/src/components/Dropdown/index.tsx b/src/components/Dropdown/index.tsx
index 1957e741c..d302d1515 100644
--- a/src/components/Dropdown/index.tsx
+++ b/src/components/Dropdown/index.tsx
@@ -16,12 +16,12 @@ function RawDropdown({ Icon, ...originalProps }: DropdownProps) {
const icon = useMemo(() => (Icon ? : undefined), [Icon])
const hasIcon = useMemo(() => Boolean(Icon), [Icon])
- return
+ return
}
// TODO We need to split into multiple styled components as done in ``.
const StyledDropdown = styled(RsuiteDropdown)<{
- hasIcon: boolean
+ $hasIcon: boolean
}>`
.rs-btn {
align-items: center;
@@ -30,7 +30,7 @@ const StyledDropdown = styled(RsuiteDropdown)<{
color: ${p => p.theme.color.gainsboro};
display: flex;
font-size: 13px;
- padding: ${p => (p.hasIcon ? '5px' : '6px')} 12px;
+ padding: ${p => (p.$hasIcon ? '5px' : '6px')} 12px;
:hover {
background-color: ${p => p.theme.color.blueYonder['100']};
diff --git a/src/fields/DatePicker/CalendarPicker.tsx b/src/fields/DatePicker/CalendarPicker.tsx
index c766d4491..aa7c054cb 100644
--- a/src/fields/DatePicker/CalendarPicker.tsx
+++ b/src/fields/DatePicker/CalendarPicker.tsx
@@ -78,6 +78,7 @@ const GlobalStyleToHideBodyDialog: any = createGlobalStyle`
const Box = styled.div`
height: 0;
position: relative;
+ top: 0;
user-select: none;
.rs-picker-toggle {
diff --git a/src/fields/MultiCheckbox.tsx b/src/fields/MultiCheckbox.tsx
index f4f283227..77d9f5f70 100644
--- a/src/fields/MultiCheckbox.tsx
+++ b/src/fields/MultiCheckbox.tsx
@@ -52,7 +52,7 @@ export function MultiCheckbox({