Open vcvandersluis opened 5 months ago
The style classes for the underlying html code is not properly handled as the display
attribute of your error message is set to null
(likely a wrong inheritance which I have not inspected further) and thus, the element is not shown. As a solution to this, https://github.com/pydantic/FastUI/blob/e8b12f5975d168d5904e22b64c26cdd707c04817/src/npm-fastui-bootstrap/src/index.tsx#L103
can be changed to
return 'invalid-feedback d-block'
to solve this issue.
In the forms demo (https://fastui-demo.onrender.com/forms/big). The name input should start with a capital; otherwise, it will display the PydanticCustomError in red.
I want to implement this PydanticCustomError behavior for the multi-select component, where selecting both A and B together is not allowed.
My code:
I noticed that the PydanticCustomError is present on the page. However, the message isn't being displayed.
See:
Is it possible to display this PydanticCustomError on the page?