Skip to content

Unable to paste text into the Query field in the Vision tab locally, if the text box is empty #11477

@obliviga

Description

@obliviga

Describe the bug

Unable to paste text into the Query field in the Vision tab locally, if the text box is empty. If the text box is not empty, then I'm able to paste text.

To Reproduce

Steps to reproduce the behavior:

  1. Run the local dev server
  2. Go to the Vision tab
  3. Ensure that the Query input text box has no text in it
  4. Try to paste text into the Query input text box
  5. The text is not pasted
    Expected behavior

Any text in your clipboard should be pasted, even if the Query text box has no value.

Screenshots

Image

Which versions of Sanity are you using?

@sanity/cli (global) 4.21.1 (up to date)
@sanity/eslint-config-studio 5.0.2 (up to date)
@sanity/vision 4.21.1 (up to date)
sanity 4.21.1 (up to date)

What operating system are you using?
MacOS Tahoe

Which versions of Node.js / npm are you running?

Run npm -v && node -v in the terminal and copy-paste the result here.
10.9.3
v22.18.0

Additional context

I found out about this bug by following this part of the tutorial: https://www.sanity.io/docs/sanity-studio-quickstart/querying-content-with-groq#k1e8603cde81a

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