MathRobin / Never-Consent

Never consent to any GDPR consent management platform
MIT License
255 stars 16 forks source link

Updated SirData new behaviour #45

Closed Shadok closed 4 years ago

Shadok commented 4 years ago

Allow targeting parent elements to click to match SirData new behaviour, with updated classes. Related to issue #43.

elClick function was updated to allow a third parameter, to specify if we should target the parent element of the one matching the given selector(s).

Tested with Chrome and it works well.

MathRobin commented 4 years ago

Tried your fix, seems that they already updated it again, so we have to be more vicious than targeting witch react random classes. Will try something else. I merged your PR to get your update of the elClick function wich is a good idea