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

Reference field automatically closes after clicking the Replace button #8686

Open
danilo-arioli opened this issue Feb 18, 2025 · 1 comment

Comments

@danilo-arioli
Copy link

Describe the bug
When attempting to replace a reference, the field automatically closes if the user moves the mouse immediately after clicking the replace button. If the user keeps the mouse still after clicking, the field works as expected .

To Reproduce

  1. Initialize a new Sanity project
  2. Add a reference field
  3. Try to replace the value

Expected behavior
The field should remain open and allow the user to change the value regardless of mouse movement after clicking the button.

Screenshots

reference-field-issue.mov

Which versions of Sanity are you using?
3.75.1

What operating system are you using?
MacOS Monterey 12.6.5

Which versions of Node.js / npm are you running?
npm v.10.2.4
node v.18.19.1
pnpm v.9.15.3

@danilo-arioli
Copy link
Author

The issue only occurs when the reference is an array member, it does not occur when the reference is its own field.

Reference field:

reference-field.mov

Reference array member:

array-of-references.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant