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

Issue when click on any <a> tag. #131

Open
tininess opened this issue Sep 5, 2018 · 1 comment
Open

Issue when click on any <a> tag. #131

tininess opened this issue Sep 5, 2018 · 1 comment

Comments

@tininess
Copy link

tininess commented Sep 5, 2018

Hi there,

I am using jquery.dirtyforms for my project and include jquery.dirtyforms.dialogs.bootstrap for nice modal as well.
My problem was :

  • I have tag and have onclick event on it. When click on this tag, the modal always display, after that , it do my onclick function.

I just use basic init like this :

$VHC.DirtyForm.Init = function (id) {
var options = {
message: "Some fields have been changed. Do you want to save changes?",
dirtyClass: "dirty",
fieldSelector: ":input:not(input[type="submit"]):not(input[type="button"])",
fieldEvents: "change keyup propertychange input"
};
$(id).dirtyForms(options);
}
image

Do you have any idea about this issue ?

@PlippiePlop
Copy link

did you try to do e.stopPropagation() OR e.stopImmediatePropagation() on the click event of the A tag. Without some code example i can only do guesstimates...

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