Skip to content

Can't close modals #232

Open
Open

Description

@Matthieu1987

Hello
we have problem with some modals. They won't close and trigger error.

gdprFunctions[callback]();

gdpr-public.js?ver=2.1.0:1 Uncaught TypeError: t[o] is not a function
var o = e(this).data("callback"); t[o]()
Maybe there are no callback in the element ? However, i just verify if the function exist before trigger it.
var o = e(this).data("callback"); if(typeof t[o] === 'function'){ t[o]() }

Activity

  1. brianweyer commented on Oct 13, 2018

    @brianweyer

    @Matthieu1987 It looks like this is due to data-callback="closeNotification" missing from https://github.com/trewknowledge/GDPR/blob/develop/public/partials/confirmation-screens.php#L58

    I just ran into the same problem. It was looking for the data property with the name callback and a function name to call. But since none is provided, it can't find the function to call.

  2. wking-io commented on May 15, 2019

    @wking-io

    This is still an issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions