Close Button issue in ChatHeader
Description:
Clicking the close button in ChatHeader does nothing and an error is generate in the console when the button is clicked.
Steps to reproduce:
- Open Storybook
- Enable the
isClosableprop from the addon section if not done - Open the console
- Click on the close button and see error.
Expected behavior:
The setClosableState should be a function if passed in the onClick prop of the Close button
Actual behavior:
Maintainers, please let me know if this needs attention and if yes then what should be done when close button is clicked. Thanks.
Hey @umangutkarsh, can you give me an idea what does this setClosableState do??
Hey @umangutkarsh, can you give me an idea what does this
setClosableStatedo??
Hi @devanshkansagra . Imo, it should either be a function or a Boolean
Hey @umangutkarsh, I mean What operation it does. Does it close the session, or set the window to full screen or what??
And Ya it might be a function, coz it seems to do some operation
I think setClosableState is a function passed from outside when EmbeddedChat is used in any website. It makes sense to pass a function from outside, since handling internally will be vague. Because if we close EmbeddedChat on clicking 'X' in development mode, we won't be able to open it without refresh. Please correct me for any misunderstandings @abhinavkrin
We can pass a No-operation function to handle it.
setClosableState: () => {}
- Hence clicking on 'X', the effect will only be seen in production once we pass a valid function.
- So no errors during development.
Can anyone can help to setup the local environment because I am getting error related to EmbeddedChat API after running yarn storybook @umangutkarsh
Can anyone can help to setup the local environment because I am getting error related to EmbeddedChat API after running yarn storybook @umangutkarsh
What steps are you following?? Also could you share what issues you are getting?
After running these commands :
cd packages/react yarn storybook This error occured.
I hope you can understand my issue after seeing the above screenshots @umangutkarsh
After running these commands :
cd packages/react yarn storybook This error occured.
I hope you can understand my issue after seeing the above screenshots @umangutkarsh
Seems to me you are not using WSL. Use wsl to run the dev env. Running the dev env, won't work on normal windows. If you face any other issues. Let me know

