Popup-Maker icon indicating copy to clipboard operation
Popup-Maker copied to clipboard

Interference with Ninja Form Radio

Open thekuom opened this issue 5 years ago • 2 comments

I have some custom JS on my website that listens to the ninja forms radio:

jQuery(document).ready(function($) {
  var myController = Marionette.Object.extend({

    initialize: function() {
      this.listenTo(Backbone.Radio.channel('forms'), 'submit:response', function () {
        console.log('hello world!');
      });
    }
  });

  new myController();
});

As expected, when I submit my form, "hello world!" is printed to the console. When I activate Popup Maker and I submit the form, nothing is printed to the console

thekuom avatar Jun 12 '19 22:06 thekuom

@thekuom - You will likely need to consult with NF devs on that one. The code we have is similar: https://github.com/PopupMaker/Popup-Maker/blob/master/assets/js/src/site/plugins/pum-integrations.js#L10-L39

But they wrote the initial part for me and I filled in the blanks ;), so if its not compatible I wouldn't know why that would be.

danieliser avatar Jun 12 '19 23:06 danieliser

@thekuom is this still an issue?

I'm not able to replicate as of PUM v1.8.11 / NF v3.4.20 using https://gist.github.com/kjohnson/79dfd4f28b4c0a1754631052cd47d386

kjohnson avatar Oct 11 '19 20:10 kjohnson