gpbl / react-day-picker

DayPicker is a customizable date picker component for React. Add date pickers, calendars, and date inputs to your web applications.
https://daypicker.dev
MIT License
5.88k stars 702 forks source link

Bug with label #2061

Closed juandiii closed 4 months ago

juandiii commented 4 months ago

Description

I found a bug when I place the label inside the 'Day Picker', and then when I go to the browser and hover over the 'Day Picker', it displays the back button (hover) to go to the previous month.

CodeSandbox: https://codesandbox.io/p/sandbox/react-day-picker-with-label-5lc4cg

Expected Behavior

It shouldn't display the back button (hover) to go to the previous month unless a specific functionality is clicked to change the month.

Actual Behavior

I found a bug when I place the label inside the 'Day Picker', and then when I go to the browser and hover over the 'Day Picker', it displays the back button (hover) to go to the previous month.

Or when you hover over and click outside of the calendar, meaning the edges