Hello.
Im trying to implement the avatar option on an angular project using ImageInputComponent.
I have bootstrap ImageInputComponent on the ngOnInit of my component like this:
ImageInputComponent.bootstrap('#my-avatar')
But this is not working, the cancel or remove options, never worked and I have to implement my own functions to make the add option to work.
How can I implement the image input component properly on the new component form that I'm trying to create, any ideas?
Thanks
Hello Damaris,
If the cancel and remove options of the ImageInputComponent are not working as expected, you can try adding the following attributes to the corresponding buttons:
For the cancel option:
[data-kt-image-input-action="cancel"]
[data-kt-image-input-action="remove"]