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

Filter Rule "Paste Raw Value" not working #11907

Closed
3 tasks done
Pachat opened this issue Mar 1, 2022 · 4 comments · Fixed by #12034
Closed
3 tasks done

Filter Rule "Paste Raw Value" not working #11907

Pachat opened this issue Mar 1, 2022 · 4 comments · Fixed by #12034
Assignees
Labels

Comments

@Pachat
Copy link

Pachat commented Mar 1, 2022

Preflight Checklist

Describe the Bug

Nothing happens

To Reproduce

  1. Show a rule and click on Copy Raw Value
  2. Verify in an editor that the raw value is in the clipboard
  3. Go to another profile's rule on the same collection and click on Paste Raw Value

Errors Shown

Nothing copied.
Albeit click on "Edit Raw Value", Ctrl+V works

What version of Directus are you using?

9.5.2

What version of Node.js are you using?

16.14.0

What database are you using?

SQLite version 3.37.0

What browser are you using?

Firefox

What operating system are you using?

Windows_NT 10.0.19043

How are you deploying Directus?

locally

@rijkvanzanten
Copy link
Member

This seems to work as expected on my end:

CleanShot.2022-03-02.at.11.02.43.mp4

Or am I misunderstanding what "rule" we're talking about? 🤔

@Pachat
Copy link
Author

Pachat commented Mar 4, 2022

Thanks for the example.
Actually, it works on Edge.
But did you try it on Firefox as in the description?

@rijkvanzanten
Copy link
Member

I did not! I wasn't sure what we were talking about in the first place 😁

@licitdev
Copy link
Member

licitdev commented Mar 8, 2022

@Pachat Thank you for your report. Firefox only supports reading the clipboard in browser extensions. So, we will have to prevent users from "pasting" on unsupported browsers.

Screenshot 2022-03-08 at 10 13 39 PM

Ref: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#clipboard_availability

@licitdev licitdev self-assigned this Mar 8, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants