Skip to content

Commit 5ff7e64

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

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/CalendarDay.js

Lines changed: 1 addition & 0 deletions
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)