rasa-webchat icon indicating copy to clipboard operation
rasa-webchat copied to clipboard

WebChat.close() does not work

Open zusibell opened this issue 5 years ago • 0 comments
trafficstars

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

zusibell avatar Aug 26 '20 13:08 zusibell