smbls 0.15.41 → 0.15.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/atoms/Media.js +2 -2
package/package.json
CHANGED
package/src/atoms/Media.js
CHANGED
|
@@ -87,14 +87,14 @@ const applyCaseProps = (key, props, result, element) => {
|
|
|
87
87
|
|
|
88
88
|
const applyConditionalCaseProps = (key, props, result, element) => {
|
|
89
89
|
const caseKey = key.slice(1)
|
|
90
|
-
const isPropTrue = element.props[caseKey]
|
|
90
|
+
const isPropTrue = element.props[caseKey] || element.state[caseKey] === true
|
|
91
91
|
if (!isPropTrue) return // remove classname if not here
|
|
92
92
|
return merge(result, convertPropsToClass(props, result, element))
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
const applyConditionalFalsyProps = (key, props, result, element) => {
|
|
96
96
|
const caseKey = key.slice(1)
|
|
97
|
-
const isPropTrue = element.props[caseKey]
|
|
97
|
+
const isPropTrue = element.props[caseKey] || element.state[caseKey] === true
|
|
98
98
|
if (!isPropTrue) return merge(result, convertPropsToClass(props, result, element))
|
|
99
99
|
}
|
|
100
100
|
|