You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A misplaced parenthesis here is passing cssModule to mapToCssModules incorrectly in Col when using an object-style columnProp. Instead, cssModule is pushed on to the stack of colClasses, and thus the second time classNames is called, all classnames in the module will be placed in the joined classname (since the values are truthy), so the col gets all classes in the cssModule.
What should be happening?
The module should be supplied to mapToCssModules and only the relevant classes should be appended.
Steps to reproduce issue
Configure css modules in build and import styles
Create a column with an object as the columnProp e.g. <Col cssModule={style} lg={{size: 8, offset: 2}}>hello</Col>
I'll issue a PR now
The text was updated successfully, but these errors were encountered:
Issue description
Col
What is happening?
A misplaced parenthesis here is passing
cssModule
tomapToCssModules
incorrectly inCol
when using an object-stylecolumnProp
. Instead,cssModule
is pushed on to the stack ofcolClasses
, and thus the second timeclassNames
is called, all classnames in the module will be placed in the joined classname (since the values are truthy), so the col gets all classes in the cssModule.What should be happening?
The module should be supplied to
mapToCssModules
and only the relevant classes should be appended.Steps to reproduce issue
<Col cssModule={style} lg={{size: 8, offset: 2}}>hello</Col>
I'll issue a PR now
The text was updated successfully, but these errors were encountered: