Skip to content

Commit 5b8a377

Browse files
authored
fix: allow single-click date selection when input is focused (#7994)
1 parent 0a0b539 commit 5b8a377

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

components/lib/calendar/Calendar.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3562,6 +3562,7 @@ export const Calendar = React.memo(
35623562
className: cx('dayLabel', { className }),
35633563
'aria-selected': selected,
35643564
'aria-disabled': !date.selectable,
3565+
onMouseDown: (e) => e.preventDefault(),
35653566
onClick: (e) => onDateSelect(e, date),
35663567
onKeyDown: (e) => onDateCellKeydown(e, date, groupIndex),
35673568
'data-p-highlight': selected,

0 commit comments

Comments
 (0)