I clone repository to my server. Just want to add BG language and make some changes.
Run commands npm install, after that make add a language and run npm run-script make-dev
When i set mustConsent to true when put script in the site, get an error "Uncaught TypeError: Cannot read properties of undefined (reading 'focus')".
return t = a, r = [{ key: "componentDidMount", value: function() { **this.consentModalRef.focus()** } }, { key: "render", value: function() {
When im using klaro.js from web site doesn`t have this problem. When i look up over the file this option is missing at all
The problem is caused from here but didnt know how to fix it.
Klaro Config
//deffault mustConsent: false, mustConsent: true,
I clone repository to my server. Just want to add BG language and make some changes. Run commands
npm install
, after that make add a language and runnpm run-script make-dev
When i set
mustConsent
totrue
when put script in the site, get an error "Uncaught TypeError: Cannot read properties of undefined (reading 'focus')".return t = a, r = [{ key: "componentDidMount", value: function() { **this.consentModalRef.focus()** } }, { key: "render", value: function() {
When im using klaro.js from web site doesn`t have this problem. When i look up over the file this option is missing at all
The problem is caused from here but didnt know how to fix it.