I want to update the text in my WebChat SendBox, using the following code in the Console on Edge:
window.WebChat.createStore().dispatch({
type: 'WEB_CHAT/SET_SEND_BOX',
payload: {
text: 'Hello World',
}
});
The Console returns:
{type: 'WEB_CHAT/SET_SEND_BOX', payload: {…}}
payload: {text: 'Hello World'}
type: "WEB_CHAT/SET_SEND_BOX"
[[Prototype]]: Object
But the WebChat SendBox is not updated with "Hello World".
What am I doing wrong?