Skip to content

Commit 5ff7e64

Browse files
committed
add date-string attribute to <CalendarDay/>s
1 parent 21116de commit 5ff7e64

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/CalendarDay.js

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export default function CalendarDay({
5353
onMouseLeave={handleMouseLeave}
5454
onTouchEnd={handleClick}
5555
style={{ height }}
56+
data-date-string={date.toLocaleDateString('en-US').replaceAll('/', '-')}
5657
>
5758
{dayOfMonth === 1 && (
5859
<span className='nice-dates-day_month'>{format(date, 'LLL', { locale })}</span>

0 commit comments

Comments
 (0)