-
Bug
-
Resolution: Unresolved
-
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.