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

Pop up on reference input closes sundenly #7764

Open
andretauffer opened this issue Nov 6, 2024 · 1 comment
Open

Pop up on reference input closes sundenly #7764

andretauffer opened this issue Nov 6, 2024 · 1 comment

Comments

@andretauffer
Copy link

Describe the bug

When trying to replace components in a reference type field using the options in the right side of a component, upon clicking replace and moving the mouse the replace action is automatically closed

Screen.Recording.2024-11-06.at.16.04.00.mov

To Reproduce

Steps to reproduce the behavior:

  1. Go to a schema that has a field of type reference
  2. Click on the options (three dots to the right of the component title)
  3. Select the replace option and, after clicking, move the mouse away from it outside of the pop over
  4. See the replace action being cancelled

Expected behavior

I would expect the replace action to be started properly and wait for my input

Screenshots
added a video

Which versions of Sanity are you using?

Run sanity versions in the terminal and copy-paste the result here.

@sanity/cli           3.63.0 (up to date)
@sanity/dashboard      4.1.0 (up to date)
@sanity/ui            2.8.19 (up to date)
@sanity/vision        3.63.0 (up to date)
sanity                3.63.0 (up to date)

What operating system are you using?
IOS

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

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

9.8.1 (npm)
v18.18.2 (node)

Additional context

Add any other context about the problem here.
I've updated to the latest version today from version 3.16.2
It was not noticed in the previous version
It happens in some reference selectors and not in others.
I've noticed that where it happens we also use custom validations.
However, removing those validations did not seem to fix the issue

Copy link
Member

Hi, thank you for reporting and all the details added.

We can reproduce it internally and the bug has been added to triage. We note that this is only an issue when the cursor is moved quickly after selecting 'Replace'. Currently this issue can be avoided either briefly waiting after clicking the 'Replace' option, or by slowly moving the cursor.

We will keep this issue updated once it's fixed.

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

2 participants