Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scRichText does not clear text when change to empty string #1295

Open
rainlake opened this issue Jan 18, 2023 · 4 comments
Open

scRichText does not clear text when change to empty string #1295

rainlake opened this issue Jan 18, 2023 · 4 comments
Labels
backlog Issue/PR/discussion is reviewed and added to backlog for the further work stale

Comments

@rainlake
Copy link

according to this line

if (!field || (!field.editable && !field.value)) {

scRichText directive does not seem to clear text when changed from text to empty.

@illiakovalenko
Copy link
Contributor

@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

@eclipticrick
Copy link

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);
  }
}

@illiakovalenko
Copy link
Contributor

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

@illiakovalenko illiakovalenko added the backlog Issue/PR/discussion is reviewed and added to backlog for the further work label Sep 20, 2023
Copy link

stale bot commented Sep 19, 2024

This has been automatically marked as stale because it has not had recent activity. It will be closed if there is no further activity within 30 days. You may add comments or the 'keep' label to prevent it from closing. Thank you for your contributions.

@stale stale bot added the stale label Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Issue/PR/discussion is reviewed and added to backlog for the further work stale
Projects
None yet
Development

No branches or pull requests

3 participants