Cannot read properties of undefined (reading '$refs')

Hello

I am trying to integrate Tawk.to into my web app. I was very happy to find the .login() method; this will help me identify the user I am chatting with.

Here’s my code

            window.Tawk_API = window.Tawk_API || {};
            window.Tawk_API.autoStart = false;
            window.Tawk_API.onLoad = function(){
                    Tawk_API.start();
                     Tawk_API.login(user); 

                    setTimeout(function (){
                        Tawk_API.maximize();

                    }, 1000);
            };

All of the above works well. But once the widget is maximized, it suddenly gets hidden again, and I get the following error:

twk-chunk-24d8db78.js:2 Uncaught TypeError: Cannot read properties of undefined (reading '$refs')
    at a.autoFocusChatInput (twk-chunk-24d8db78.js:2:88882)
    at twk-chunk-24d8db78.js:2:89045

Hello

Any help would be appreciated.

Thanks

So there’s no support! That’s big red flag! Why would anyone subscribe to a tech service ,with no tech support behind it!