`as` prop does not take precedence over components
IanVS opened this issue ยท 2 comments
IanVS commented
As seen in #87 (comment), as
does not take precedence over render
if the value provided to it is a component rather than an element.
The snapshot generated in #87 is not correct, and should be fixed.
bluebill1049 commented
Thank you very much @IanVS sorry for the delay response. Merged and released.
IanVS commented
The PR mentioned above #87 does not fix this issue, it was spawned from that PR, but a new PR is needed. https://github.com/react-hook-form/error-message/pull/87/files/f0d5c51b3d04006eaa6bf19ed7224a312cbdb0f6#r762061758
I think this should be re-opened.