Skip to content

Commit 39230ed

Browse files
committed
Replace OR with AND operator
Changed the operators in flexboxIE.js and flexboxOld.js
1 parent ae4a0d7 commit 39230ed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/plugins/flexboxIE.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const properties = Object.keys(alternativeProps).reduce((result, prop) => {
2626

2727
export default function flexboxIE({ property, value, styles, browserInfo: { browser, version }, prefix: { css }, keepUnprefixed }) {
2828
if (
29-
(properties[property] || property === 'display' && value.indexOf('flex') > -1) &&
29+
(properties[property] && property === 'display' && value.indexOf('flex') > -1) &&
3030
(
3131
(browser === 'ie_mob' || browser === 'ie') && version == 10)
3232
) {

modules/plugins/flexboxOld.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const properties = Object.keys(alternativeProps).concat(otherProps).reduce((resu
2626

2727
export default function flexboxOld({ property, value, styles, browserInfo: { browser, version }, prefix: { css }, keepUnprefixed }) {
2828
if (
29-
(properties[property] || property === 'display' && value.indexOf('flex') > -1) &&
29+
(properties[property] && property === 'display' && value.indexOf('flex') > -1) &&
3030
(
3131
browser === 'firefox' && version < 22 ||
3232
browser === 'chrome' && version < 21 ||

0 commit comments

Comments
 (0)