tui-input is not reacting to touched #9324
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
We have P.S. Come to think of it, we can probably typecast the control to |
Beta Was this translation helpful? Give feedback.
markAsTouched
only updates thetouched
state on control with no way of notifying the component. It's one of the longest standing issues for Angular that only got fixed in 18, which we cannot yet use:angular/angular#10887
We have
tuiMarkControlAsTouchedAndValidate
which you can use to recursively update anyAbstractControl
combination. It calls bothmarkAsTouched
andupdateValueAndValidity
, which triggersstatusChange
stream. It would also triggervalueChange
so be careful, maybe you needdistinctUntilChange
somewhere in your streams to not react to that.P.S. Come to think of it, we can probably typecast the control to
any
and reach for thatevents
stream if it's there, that would make i…