-
-
Notifications
You must be signed in to change notification settings - Fork 149
NaN is an invalid value for the 'minWidth' CSS style property when setting styles in <ChatBot> component #315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hey @SiddhantOjhaTIAA, did a quick test on the playground with your code but could not reproduce it 😢 Do you have a public project I can pull to reproduce this issue? |
@tjtanjin Not it's not an public project, Sorry I can't share my project with you. I tried multiple things to fixed this and also added the attribute minWidth but still it is not getting resolved. |
To clarify, this is an issue you only faced in React 19 but not when you were on React 18? Was there anything else that was changed or was it only the version? |
@SiddhantOjhaTIAA Just took a look at the code and found the cause, though I'd be a little perplexed if this was uniquely React 19 🤨 You can change your width from |
@tjtanjin Adding width just
For this I guess we can't hardcode any value, so we will be needing the attribute that's support string entries. |
Hey @SiddhantOjhaTIAA, if you're using % then the current handling of calculations will break. I'll see if I can push the fix when I get back in a couple of hours. |
@tjtanjin Thanks a lot. |
This is now fixed in beta.38 😊
|
Assuming this is no longer an issue, feel free to reach out again if so! 😊 |
@tjtanjin Thank you, This fix worked, thank you for your quick response and help. |
Bug Description:
In an application with React 19 + Next 15, I am using ChatBot component from react-chatbotify library.
I'm experiencing an issue with the component. It is showing the following error even if I provide the minWidth still, I encounter the following error:
Steps To Reproduce:
Steps to reproduce the bug behavior:
npm install react-chatbotify@2.0.0-beta.33
Expected behavior:
The minWidth style should be applied correctly without causing any errors.
Screenshots:
Library version:
2.0.0-beta.33
Desktop (please complete the following information):
Mobile (please complete the following information):
Additional context:
The text was updated successfully, but these errors were encountered: