mirror of
https://github.com/bobwen-dev/react-templates
synced 2025-04-12 00:56:39 +02:00
Change class set template for compatibility with lodash 4
This commit is contained in:
parent
2bcfcc738e
commit
e56cd6d06a
@ -32,7 +32,7 @@ const propsMergeFunction = `function mergeProps(inline,external) {
|
||||
}
|
||||
`;
|
||||
|
||||
var classSetTemplate = _.template('_.keys(_.pick(<%= classSet %>, _.identity)).join(" ")');
|
||||
var classSetTemplate = _.template('_(<%= classSet %>).transform(function(res, value, key){ if(value){ res.push(key); } }, []).join(" ")');
|
||||
|
||||
function getTagTemplateString(simpleTagTemplate, shouldCreateElement) {
|
||||
if (simpleTagTemplate) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user