jss icon indicating copy to clipboard operation
jss copied to clipboard

scRichText does not clear text when change to empty string

Open rainlake opened this issue 2 years ago • 4 comments

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 avatar Jan 18 '23 14:01 rainlake

@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

illiakovalenko avatar Apr 18 '23 11:04 illiakovalenko

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 avatar Sep 20 '23 11:09 eclipticrick

@eclipticrick Thanks for the details! I will add it to our inbox for the further investigation

illiakovalenko avatar Sep 20 '23 19:09 illiakovalenko