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

[Bug] The DOM added by addFloatDomToPosition: 1. The click event is intercepted; 2. The DOM added in the second sheet cannot follow the table scrolling #4031

Open
2 tasks done
hyman928 opened this issue Nov 11, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@hyman928
Copy link

在您提交此问题之前,您是否检查了以下内容?

  • 这真的是个问题吗?
  • 我已经在 Github Issues 中搜索过了,但没有找到类似的问题。

受影响的包和版本

0.4.2

复现链接

https://github.com/hyman928/sheets-vite-demo/tree/hyman928/patch-8519/src

预期行为

  1. 浮动dom内的添加自定义的dom,dom的点击事件能正常触发
  2. 第二个sheet表添加的浮动dom能正常跟随表格滚动

实际行为

  1. 浮动dom内的元素点击事件都被拦截掉了,无法触发
  2. 第二个sheet表的添加的浮动dom无法跟随表格滚动

运行环境

Chrome

系统信息

System:
OS: macOS 14.5
CPU: (8) arm64 Apple M1
Memory: 124.50 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.18.2 - ~/.nvm/versions/node/v18.18.2/bin/node
Yarn: 1.22.22 - ~/.nvm/versions/node/v18.18.2/bin/yarn
npm: 9.8.1 - ~/.nvm/versions/node/v18.18.2/bin/npm
pnpm: 9.1.4 - ~/.nvm/versions/node/v18.18.2/bin/pnpm
Browsers:
Chrome: 130.0.6723.117
Safari: 17.5

@hyman928 hyman928 added the bug Something isn't working label Nov 11, 2024
@univer-bot univer-bot bot changed the title [Bug] addFloatDomToPosition 添加的dom,1. 点击事件被拦截;2. 第二个sheet表添加的dom无法跟随表格滚动 [Bug] The DOM added by addFloatDomToPosition: 1. The click event is intercepted; 2. The DOM added in the second sheet cannot follow the table scrolling Nov 11, 2024
@univer-bot
Copy link

univer-bot bot commented Nov 11, 2024

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

Origin Title: [Bug] addFloatDomToPosition 添加的dom,1. 点击事件被拦截;2. 第二个sheet表添加的dom无法跟随表格滚动

Title: [Bug] The DOM added by addFloatDomToPosition: 1. The click event is intercepted; 2. The DOM added in the second sheet cannot follow the table scrolling


Before you submitted this question, did you check the following?

  • Is this really a problem?
  • I've searched Github Issues but haven't found any similar issues.

Affected packages and versions

0.4.2

Recurrence link

https://github.com/hyman928/sheets-vite-demo/tree/hyman928/patch-8519/src

Expected behavior

  1. Add a custom dom in the floating dom, and the click event of the dom can be triggered normally.
  2. The floating DOM added to the second sheet can scroll normally with the table.

Actual behavior

  1. The click events of elements in the floating dom are intercepted and cannot be triggered.
  2. The floating dom added to the second sheet cannot follow the table scrolling

Running environment

Chrome

System information

System:
OS: macOS 14.5
CPU: (8) arm64 Apple M1
Memory: 124.50 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.18.2 - ~/.nvm/versions/node/v18.18.2/bin/node
Yarn: 1.22.22 - ~/.nvm/versions/node/v18.18.2/bin/yarn
npm: 9.8.1 - ~/.nvm/versions/node/v18.18.2/bin/npm
pnpm: 9.1.4 - ~/.nvm/versions/node/v18.18.2/bin/pnpm
Browsers:
Chrome: 130.0.6723.117
Safari: 17.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants