Unexpected Validation In Tabs #5485
Closed
RealityMasque
started this conversation in
General
Replies: 1 comment 9 replies
-
To clarify. Do You want to validate each tab separately? If yes, then you can wrap each PS. it is also good to use the @foreach (Item item in Items)
{
<TabPanel @key="@item" Name="@item.IdString"> |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have items in tab panels. I would like to be able to validate each individual item in a tab pane, as well as be able to validate all the items across the tabs.
In my case, some of the blazorise fields are defined in the tab panel, & some are defined in components in the same tab panel.
I have a validate button outside the tabs which invokes validations components ValidateAll() - these validations components have the same @ref. all the blazorise fields defined in the tab panel end up being validated. however, for the fields in the component in the tab panel, only the last tab's component's fields show validation has happened.
is there a way to accomplish what I am trying?
Here's the data class
Here's the tab component:
Here's the component in each tab content:
Beta Was this translation helpful? Give feedback.
All reactions