Conditional rendering is not working for accordion tabs #1459
-
Scope: <DESCRIBE SCOPE OF THIS ISSUE, i.e.: PF4 mapper, Form renderer> The tab component should be visible only if form component values present in another section match a certain condition. However that is not working. Please find the schema below for your reference. Schema const schema = { export default schema; |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 13 replies
-
Please help / respond |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
@rvsia could you please help me with the code example? |
Beta Was this translation helpful? Give feedback.
-
Hello Richard,
I have added a comment here. Could you please look into it and help me ?
Thanks,
Aditya
…On Fri, May 10, 2024 at 6:55 PM Richard Všianský ***@***.***> wrote:
@adityapatil9191 <https://github.com/adityapatil9191> Here is fixed
version:
1. you mapped children of tabs to tabs, I created a new tab so it's
wrapped as a new field.
2. your autocomplete component is wrong - you store a whole object
there, but you need to store data.value
onChange={(_, data) => input.onChange(data.value)}
—
Reply to this email directly, view it on GitHub
<#1459 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIA7R5WC6HAUCKYEBB4JU6DZBTDD3AVCNFSM6AAAAABHQTACR2VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TGOBTGA3DC>
.
You are receiving this because you were mentioned.Message ID:
<data-driven-forms/react-forms/repo-discussions/1459/comments/9383061@
github.com>
|
Beta Was this translation helpful? Give feedback.
@adityapatil9191 Here is fixed version [1]
tabs
totabs
, I created a newtab
so it's wrapped as a new field.data.value