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
[Modal] Съезжают отступы, т.к. не работает сравнение по type вместе с react-hot-loader #1267
Labels
Comments
А почему у тебя компоненты библиотеки оборачиваются в обертку? |
Да, настало время это починить. |
Мы починили в 0.46.0. |
Вы то да, а React-Hot-Loader пока еще нет. В понедельнику авось и починится. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
react-hot-loader
в dev-режиме все компоненты приобретают hot-обертку, из-за этого сравнение элементов поtype
не работают. Так в режиме разработки сreact-hot-loader
у нас ломались отступы в лайтбоксе.Пример кода в
ModalHeader.tsx
который всегда возвращалfalse
-child.type === Header
.Абсолютно то же самое в
ModalFooter.tsx
-child.type === Footer
Все это относится к особенности работы
react-hot-loader
, которую нельзя изменить.gaearon/react-hot-loader#304
The text was updated successfully, but these errors were encountered: