VisActor / VisActor/VTable

[Bug] 在firefox和safari, 使用复制功能报错

Open
#3,646 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
3.7k
Forks
486
Avg merge
1d 19h
Merged PRs (30d)
16

Description

Version

1.17.3

Link to Minimal Reproduction

https://visactor.io/vtable/demo/interaction/copy-paste-cell-value

Steps to Reproduce

在firefox和safari访问,拉选复制,报错
主要是这行代码:navigator.permissions.query({ name: 'clipboard-write' as PermissionName })
clipboard-write 在这两个浏览器不存在

Current Behavior

报错

Image

Expected Behavior

复制成功

Environment
firefix: 136.0.3 (aarch64)
safari: 18.3 (20620.2.4.11.5)
os: mac 15.3.1
Any additional comments?

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Search the codebase for navigator.permissions.query and the clipboard-write permission handling used by the copy interaction. Reproduce the issue from the linked copy-paste-cell-value demo in Firefox and Safari, then verify that selecting and copying a cell succeeds without the permission error in both browsers.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.