-
Hi! I'm using Storybook and have a problem with @Directive({
standalone: false,
selector: '[tuiTextfieldCleaner]',
providers: [tuiProvide(TUI_TEXTFIELD_CLEANER, TuiTextfieldCleanerDirective)],
})
export class TuiTextfieldCleanerDirective extends AbstractTuiController {
@Input('tuiTextfieldCleaner')
public cleaner = false;
} So, I'm wondering how the cleaner works under the hood. I'd expect something like |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Are you sure your Storybook has
|
Beta Was this translation helpful? Give feedback.
Yes, I'm talking about that one, it is deprecated but it's never going away, don't worry. To much of internet relies on it.
NG_EVENT_PLUGINS
have to be provided in the main injector when you bootstrap your app, you cannot put them into component providers. Here's the cleaner code for legacy controls:https://github.com/taiga-family/taiga-ui/blob/main/projects/legacy/components/primitive-textfield/primitive-textfield.template.html#L90
It's not working without plugins because it has
.stop
modifier.