jss
jss copied to clipboard
scRichText does not clear text when change to empty string
according to this line https://github.com/Sitecore/jss/blob/27db6b3f982e9277f0b0c4947ea4ca638557e072/packages/sitecore-jss-angular/src/components/rich-text.directive.ts#L45
scRichText directive does not seem to clear text when changed from text to empty.
@rainlake Thank you for your report. Can I ask you, please, to provide a detailed scenario on how to reproduce this issue? You can try to test using our angular sample, and provide steps based on that. After that, we will get back and review it again
import { OnInit } from '@angular/core';
@Component({
selector: 'wl-goat-component',
template: '<div *scRichText="{ value: richTextValue }"></div>',
})
export class GoatComponent implements OnInit {
richTextValue = 'Goat';
ngOnInit() {
setTimeout(() => {
this.richTextValue = '';
}, 5000);
}
}
@eclipticrick Thanks for the details! I will add it to our inbox for the further investigation