🐛(react) fix calendar selects initialization and syncing
Select under the calendar component were not properly initialized, leading to issues. Additionally, syncing the dropdowns with the calendar state was causing unnecessary renders. Selects now update on user events triggered by the toggle button, ensuring the selected item remains up-to-date. The code has been refactored to eliminate duplication and improve the component's readability and maintainability.
This commit is contained in:
committed by
aleb_the_flash
parent
10fa71e2a7
commit
76ad5621c6
5
.changeset/strange-jeans-confess.md
Normal file
5
.changeset/strange-jeans-confess.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@openfun/cunningham-react": patch
|
||||
---
|
||||
|
||||
Fix initial focused item on select opening under the calendar
|
||||
Reference in New Issue
Block a user