-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
TabView: Conditionally render TabPanel under TabView #4235
Comments
Thanks for the report. Check out my PR. since the tab can be |
Hi @melloware , I just found a bug regarding type error of the tab view: |
Yea the fix has been merged but not yet released. It should be in 9.3.1 you are using 9.3.0 right? |
Yes, I'm using 9.3.0 |
Describe the bug
There's a bug when conditionally render TabPanel under TabView.
Let say:
I figure out that when checking
props.children
for a Tabview, it returnsfalse
for the third tab, but PrimeReact doesn't filter this value and consider it's valid React Node then process rendering that node:Reproducer
No response
PrimeReact version
9.1.1
React version
18.x
Language
TypeScript
Build / Runtime
Next.js
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: