Skip to content
This repository has been archived by the owner on May 22, 2020. It is now read-only.

data-title and data-footer attributes overrides initial config #336

Open
zephir89 opened this issue Mar 20, 2020 · 0 comments
Open

data-title and data-footer attributes overrides initial config #336

zephir89 opened this issue Mar 20, 2020 · 0 comments

Comments

@zephir89
Copy link

Hi!
I noticed that data-title and data-footer attributes overrides initial config. So, if I create an instance of lightbox like this

$("#link").ekkoLightbox({
    title: "Title",
    footer: "Footer",
    alwaysShowClose: true
});

with:

<a href="url" id="#link" >

modal header and footer will be empty because data-title and data-footer are missing.
I think the issue is in _updateTitleAndFooter function unless I misunderstand how it works.
Thank you for your great work!

Daniele

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant