Skip to content

Commit

Permalink
added value type check for old flexbox props
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin Frischmann committed Sep 16, 2016
1 parent 888d800 commit 937eba1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/plugins/flexboxOld.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default function flexboxOld({ property, value, styles, browserInfo: { bro
if (!keepUnprefixed && !Array.isArray(styles[property])) {
delete styles[property]
}
if (property === 'flexDirection') {
if (property === 'flexDirection' && typeof value === 'string') {
return {
WebkitBoxOrient: value.indexOf('column') > -1 ? 'vertical' : 'horizontal',
WebkitBoxDirection: value.indexOf('reverse') > -1 ? 'reverse' : 'normal'
Expand Down
2 changes: 1 addition & 1 deletion modules/static/plugins/flexboxOld.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const alternativeProps = {
}

export default function flexboxOld(property, value) {
if (property === 'flexDirection') {
if (property === 'flexDirection' && typeof value === 'string') {
return {
WebkitBoxOrient: value.indexOf('column') > -1 ? 'vertical' : 'horizontal',
WebkitBoxDirection: value.indexOf('reverse') > -1 ? 'reverse' : 'normal'
Expand Down

0 comments on commit 937eba1

Please sign in to comment.