microsoft / fast

The adaptive interface system for modern web experiences.
https://www.fast.design
Other
9.16k stars 586 forks source link

fix: date selection in Calendar does not work #6538

Closed mmmhsalois closed 1 month ago

mmmhsalois commented 1 year ago

🐛 Bug Report

When trying to select a date in the Calendar, the date does not get selected.

💻 Repro or Code Sample

🤔 Expected Behavior

The date should receive the class selected and the styles applied.

😯 Current Behavior

Nothing happens. There's no error, but the date does not receive the select class and no styles are applied. Also the test for selecting a date passes.

💁 Possible Solution

When I click on the date, the dateSelected event is emitted correctly via the handleDateSelect function, but I got trouble following it after that. I want to contribute.

🔦 Context

I discovered this while trying to use the Calendar to make a date picker. When I used the handleDateSelect function, it had the same behaviour as in the Storybook.

🌍 Your Environment

janechu commented 1 month ago

Unfortunately @microsoft/fast-components has been deprecated for some time.