Skip to content

Pasted code warning only one #5342

@STetsing

Description

@STetsing

Describe the bug
While pasting code in the editor, the warning only appears once. Subsequent pastes do not trigger the warning. This holds for the entire workspace until page reload

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'any source in the explorer'
  2. Paste any code in the editor
  3. accept the warning display
  4. Paste subsequent code
  5. No further warning are displayed

Expected behavior
Each time a code is pasted leading to significant changes, a warning should be displayed

Bug source
https://github.com/ethereum/remix-project/blob/047855e6bead1fb46845e74e8d05546318c206f1/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx#L701

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions