Skip to content

Pasting into table search input inserts clipboard contents twice #1024

@npyramid

Description

@npyramid

Bug Description

When pasting a value from the clipboard into the table search/filter input in DBCode, the pasted text is inserted twice.

Repro steps

  1. Open any table in DBCode.
  2. Focus the table search/filter input.
  3. Copy any value to the clipboard, for example willi.
  4. Paste it into the search field using Ctrl+V.
  5. Observe that the value is inserted twice, for example williwilli.

Expected Behavior

The clipboard content should be pasted into the search field only once.

Actual Behavior

The clipboard content is duplicated on paste. For example, pasting willi results in williwilli, which then produces an incorrect filter/query value.

Environment

  • DBCode version: 1.29.0
  • VS Code (or fork) version: 1.111.0
  • OS: Linux x64 6.18.13-zen1
  • Database: pg
  • Connection: ssh

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions