Skip to content

Text Diff Checker leaves stale original lines visible after Clear #357

Description

@baixiangcpp

Summary

The Text Diff Checker Clear action clears the editor value but leaves the previous Original Text diff lines visibly rendered in the editor. The two panes no longer show the same cleared state.

Reproduction

  1. Open https://byteflow.tools/en/text-diff-checker.
  2. Enter this in Original Text:
hello world
line two
same
  1. Enter this in Modified Text:
hello brave world
line two
same!
  1. Click Clear.

Actual result

The Original Text textbox value is empty, but the editor still renders the old lines hello world, line two, and same underneath it. The Modified Text editor is empty. The stale Original lines disappear only after manually focusing the editor and pressing Select All + Backspace.

Expected result

Clear should remove both editor values and all rendered diff lines/decorations immediately, leaving two blank editors.

Impact

Users can believe old content is still part of the active comparison, or mistake stale diff decorations for current input. This is especially confusing when reusing the tool for multiple comparisons.

Environment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions