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

Force toString() conversion of bemBlock classes in order to prevent ReactJS from ignoring className attribute #566

Closed
wants to merge 2 commits into from

Conversation

trekhleb
Copy link

ReactJS 16 throws warning and ignores className attribute in case if it is not a string.

In order to prevent it the Bem-cn library suggests to force toString() conversion of bemBlock classes.

This merge request forces SearchBox and InputFilter related classes to be converted to string explicitly.

@CLAassistant
Copy link

CLAassistant commented Nov 14, 2017

CLA assistant check
All committers have signed the CLA.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.4%) to 97.201% when pulling c0327c5 on trekhleb:master into 754ab1b on searchkit:master.

@trekhleb
Copy link
Author

Looks like there is already something done to fix that #519

Waiting for the solution to be reviwed

@trekhleb trekhleb closed this Nov 14, 2017
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 this pull request may close these issues.

None yet

3 participants