Hello,
In our project, we are using the Syncfusion Data Form component along with various Syncfusion input components for forms. To avoid code repetition, we have created custom components for some inputs. However, we are encountering an issue with this approach.
When a form is submitted, and an input value is invalid, we expect the input's border color to turn red. While this behavior works correctly for standard components, it does not work for custom input components.
Playground URL:
https://blazorplayground.syncfusion.com/hZBSjWrWBGBpsczb
The form contains two inputs:
- BasicCustomInput (uses
SfTextBox) - SfDatePicker
While the SfDatePicker behaves as expected, the custom input component does not seem to have e-error or invalid classes applied.
Could you please assist us in resolving this issue?
Thank you!