jquery.dirtyforms icon indicating copy to clipboard operation
jquery.dirtyforms copied to clipboard

Issue when click on any <a> tag.

Open tininess opened this issue 7 years ago • 1 comments

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 ?

tininess avatar Sep 05 '18 03:09 tininess

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...

PlippiePlop avatar Nov 15 '18 11:11 PlippiePlop