taiga-ui
taiga-ui copied to clipboard
🐞 - TuiError produce an error with PolymorpheusComponent
Playground Link
https://stackblitz.com/edit/angular-mwny1a?file=src%2Fapp%2Fapp.component.ts,src%2Fapp%2Fapp.component.html,src%2Fapp%2Fapp.module.ts&hideExplorer=1
Description
When I provide the TUI_VALIDATION_ERRORS
object with PolymorpheusComponent
as a value in it an error occurs Error: Cannot create a proxy with a non-object as target or handler
. It's because required
error has true
value here. Also, I haven't seen any examples with components on the Taiga.ui and this issue hadn't been faced with before but since TUI_VALIDATION_ERRORS
allows PolymorpheusContent
I'm expecting it works properly with PolymorpheusComponent
.
Angular version
12.2.17
Taiga UI version
3.79.0
Which browsers have you used?
- [X] Chrome
- [ ] Firefox
- [ ] Safari
- [ ] Edge
Which operating systems have you used?
- [X] macOS
- [ ] Windows
- [ ] Linux
- [ ] iOS
- [ ] Android