Skip to content

flexboxIE and flexboxOld fail to check in case of value is null #70

@divinetouch

Description

@divinetouch

I'm not really sure whether this is a bug or not as I encountered this issue when working with another project (Material-UI) that is using this library.

Basically the error occurs when the property is _display_ but the value is _null_ (_undefined_ is also a possibility?)

flexboxIE.js


if ((properties[property] || property === 'display' && value.indexOf('flex') > -1) && (browser === 'ie_mob' || browser === 'ie') && version == 10) {

flexboxOld.js

if ((properties[property] || property === 'display' && value.indexOf('flex') > -1) && (browser === 'firefox' && version < 22 || browser === 'chrome' && version < 21 || (browser === 'safari' || browser === 'ios_saf') && version <= 6.1 || browser === 'android' && version < 4.4 || browser === 'and_uc')) {

To get rid of the error temporary I added the check for value : typeof value === 'string'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions