Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

WebChat.close() does not work #280

Open
zusibell opened this issue Aug 26, 2020 · 0 comments
Open

WebChat.close() does not work #280

zusibell opened this issue Aug 26, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@zusibell
Copy link

zusibell commented Aug 26, 2020

I want to be able to ask for feedback before the chat window closes.

onWidgetEvent: {
                onChatClose: function() {
                    WebChat.send("/feedback")
                    WebChat.close()
                }
            }

the request /feedback gets send but the chat doesn't close after that. Do I need to have something else? Even if I left the WebChat.send away and leave only the WebChat.close() the chat window won't close on click.

The error I get in the console is the following:

index.min.js:129 Uncaught Error: Reducers may not dispatch actions.
    at p (index.min.js:129)
    at Object.dispatch (index.min.js:129)
    at Module.ui (index.min.js:129)
    at Object.onChatClose (home:46)
    at index.min.js:129
    at index.min.js:129
    at p (index.min.js:129)
    at index.min.js:129
    at s.value (index.min.js:129)
    at toggleChat (index.min.js:129)

I am using the <script> tag in an angular project.
How can i resolve this?

@MatthieuJnon MatthieuJnon added the bug Something isn't working label Aug 31, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants