Skip to content

Commit

Permalink
fix: 🐛 fix mouse enter & mouse leave
Browse files Browse the repository at this point in the history
  • Loading branch information
AruSeito committed Feb 18, 2024
1 parent 4940774 commit a5e0485
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 30 deletions.
6 changes: 0 additions & 6 deletions packages/date-picker/src/range-date-picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -690,12 +690,6 @@ export const RangeDatePicker = forwardRef<HTMLDivElement, RangeDatePickerProps>(
(showTime && panelModes[0] === "date" && panelModes[1] === "date") ||
extra

useEffect(() => {
if (!mergedPopupVisible) {
setHoverPlaceholderValue(undefined)
}
}, [mergedPopupVisible])

return (
<PickerContext.Provider value={{ utcOffset, timezone, weekStart }}>
<Trigger
Expand Down
6 changes: 0 additions & 6 deletions packages/date-picker/src/signle-date-picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -378,12 +378,6 @@ export const SingleDatePicker = forwardRef<
extra ||
(!showTime && panelMode === "date" && showNowBtn)

useEffect(() => {
if (!mergedPopupVisible) {
setHoverPlaceholderValue(undefined)
}
}, [mergedPopupVisible])

return (
<PickerContext.Provider value={{ utcOffset, timezone, weekStart }}>
<Trigger
Expand Down
6 changes: 0 additions & 6 deletions packages/date-picker/src/signle-year-picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -257,12 +257,6 @@ export const SingleYearPicker = forwardRef<
const suffixIcon =
inputSuffix === null ? null : inputSuffix || <CalendarIcon />

useEffect(() => {
if (!mergedPopupVisible) {
setHoverPlaceholderValue(undefined)
}
}, [mergedPopupVisible])

return (
<PickerContext.Provider value={{ utcOffset, timezone, weekStart }}>
<Trigger
Expand Down
6 changes: 0 additions & 6 deletions packages/date-picker/src/single-month-picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -295,12 +295,6 @@ export const SingleMonthPicker = forwardRef<
const suffixIcon =
inputSuffix === null ? null : inputSuffix || <CalendarIcon />

useEffect(() => {
if (!mergedPopupVisible) {
setHoverPlaceholderValue(undefined)
}
}, [mergedPopupVisible])

return (
<PickerContext.Provider value={{ utcOffset, timezone, weekStart }}>
<Trigger
Expand Down
6 changes: 0 additions & 6 deletions packages/date-picker/src/single-quarter-picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -295,12 +295,6 @@ export const SingleQuarterPicker = forwardRef<
const suffixIcon =
inputSuffix === null ? null : inputSuffix || <CalendarIcon />

useEffect(() => {
if (!mergedPopupVisible) {
setHoverPlaceholderValue(undefined)
}
}, [mergedPopupVisible])

return (
<PickerContext.Provider value={{ utcOffset, timezone, weekStart }}>
<Trigger
Expand Down

0 comments on commit a5e0485

Please sign in to comment.