Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Невозможно прокинуть проп onClose для компонента календаря в CalendarInput #751

Closed
Romkaf opened this issue Jul 19, 2023 · 0 comments · Fixed by #756
Assignees

Comments

@Romkaf
Copy link
Contributor

Romkaf commented Jul 19, 2023

Опишите проблему

В компоненте CalendarInput можно прокинуть пропс для компонента календаря calendarProps.
 Но при попытке передать пропс onClose, он не отработает тк ниже по коду его перепишет дефолтный
 onClose
https://github.com/core-ds/core-components/blob/master/packages/calendar-input/src/components/calendar-input/Component.tsx#L366)

Ожидаемое поведение

Нам нужно вешать метрики на открытие и закрытие календаря в мобильной и десктопной версии.
 Поэтому есть необходимость дать возможность прокидывать и применять эти кастомные колбеки при открытии и закрытии календаря

@v-gevak v-gevak self-assigned this Jul 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants