Skip to content

window -> global breaks normal behavior #15

Open
@Sloth-Wizard

Description

@Sloth-Wizard

Issue

Upgrading to latest version of fizzy-ui-utils breaks normal behavior when bundling with parcel's latest version (2.3.2).

When building in production mode
Uncaught TypeError: e is undefined

When building in dev mode
No error but slider behaviour is wrong (see image)
image

As you can see dots disapeared and all slides appart from the 1st one is invisible with flickity-fade

Reproduction

Then init a flickity basic slider with the fade like this

let flkty = new Flickity(cells_container, {
    lazyLoad: 3,
    wrapAround: true,
    fade : true,
    adaptiveHeight: true,
    initialIndex: -1,
    prevNextButtons: false,
    autoPlay: true
});

p.s: I have fixed the Uncaught TypeError: e is undefined when building in production by changing the this to global in fizzy-ui-utils code.

Downgrading to [email protected] fixes the issues but then you need 2 fizzy-ui-utils versions

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions