Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PlainModal.closeByOverlay undefined #21

Closed
butachan opened this issue Feb 10, 2023 · 4 comments
Closed

PlainModal.closeByOverlay undefined #21

butachan opened this issue Feb 10, 2023 · 4 comments

Comments

@butachan
Copy link

butachan commented Feb 10, 2023

Hi I can't figure out the syntax to prevent the modal from closing when clicking outside,

According to the docs: set PlainModal.closeByOverlay = false to disable this behavior.

my modal is defined as :
var modal = $('#shipment-modal').plainModal()
and it works

To dsable the default overlay click, here are my attempts :

modal.plainModal.closeByOverlay=false; modal.closeByOverlay=false; PlainModal.closeByOverlay = false; $('#shipment-modal').plainModal.closeByOverlay=false;

I tried each one of these inside the var modal declaration, outside and in documentready. None of these work.

By the way there is no 'closeByOverlay' keyword found in my project.

I need help, pls

@anseki
Copy link
Owner

anseki commented Feb 10, 2023

Hi @butachan, thank you for the comment.
You seem to have mistaken a repository that you should ask the question to. You are talking about a jQuery Plugin or something. This is a repository of PlainModal (Not jQuery Plugin).
The document is here: https://anseki.github.io/plain-modal/

@butachan
Copy link
Author

Hi, OK my bad

@anseki
Copy link
Owner

anseki commented Feb 13, 2023

It's OK. 😄
Could you close this issue?

@butachan
Copy link
Author

jquery plainModal =/= PlainModal

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

No branches or pull requests

2 participants