Comments (2)
window.requestAnimationFrame(() => {
document.getElementById("check-statistics-cookies").click();
document.getElementById("check-preferences-cookies").click();
})
You can access the checkbox directly via id after the react-cookie-law component is rendered. Not a good solution in the slightest but it does the work.
You can run some problems doing it this way like explained here. But it's been working for me using Ublock Origin.
from react-cookie-law.
Resolved with version 0.6.2. Now you can use the props marketingDefaultChecked
from react-cookie-law.
Related Issues (19)
- Failed to compile, module not found HOT 1
- React should be a peer dependency instead of a dependency in package.json? HOT 1
- Configure cookie path HOT 1
- Input toggle on label click HOT 1
- setState during render. HOT 3
- Doubt: What does react-cookie-law really make? HOT 1
- Compilation issue HOT 2
- showDeclineButton seems to do nothing HOT 3
- callback events are called on every page load HOT 2
- wholeDomain option is not working HOT 1
- TypeScript support HOT 1
- Re-open Cookie notice after accept-decline HOT 3
- Compatibility with Good Analytics
- Style checkbox
- Does not work with styled components HOT 2
- Compilation failure: Unable to import crypto module HOT 2
- Error: Global is not defined
- How to run/preview project locally?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-cookie-law.