Fix error in the checkbox of the Cookies block

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Should have
    • None
    • Block: Cookies

      The checkbox in the cookies block cannot be checked or unchecked as can be seen here: https://www-dev.greenpeace.org/gutenberg/pedro-test-page/

      When a user clicks on the checkbox the following error is shown in the browser console: "Uncaught ReferenceError: capabilities is not defined"

      By checking the code, it can be seen the "capabilities" variable is truly undefined and the corresponding error is ignored with "eslint-disable-next-line no-undef"

      If there's a reason to use the "capabilities" variable without a definition,  comments should be added to the file to document it properly.

            Assignee:
            Sagar Deshmukh
            Reporter:
            Pedro Figueroa
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: