Thanks to visit codestin.com
Credit goes to github.com

Skip to content

updateModalImages() in show$ does not work #265

@yarozar

Description

@yarozar

When running updateModalImages() inside subscriptions of show$() (or firstImage$, lastImage$) you still get an image from before updateModalImages() array shown, and only next navigation clicks get you to the refreshed images array.

In manual it says that show$ is fired BEFORE image visible so I expected to override current image with updateModalImages() ...

Also, from this as a workaround comes a question if it is possible to programmatically change currentImage in already opened gallery? Did not find anything in docs.

Thanks!

p.s.: your gallery looks and works great, thank you very much for making it available for everyone!

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