Skip to content

Right-clicking on a math block does not pop up the menu #9020

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

Closed
3 tasks done
Zuoqiu-Yingyi opened this issue Aug 21, 2023 · 0 comments
Closed
3 tasks done

Right-clicking on a math block does not pop up the menu #9020

Zuoqiu-Yingyi opened this issue Aug 21, 2023 · 0 comments
Assignees
Labels
Milestone

Comments

@Zuoqiu-Yingyi
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Can the issue be reproduced with the default theme (daylight/midnight)?

  • I was able to reproduce the issue with the default theme

Could the issue be due to extensions?

  • I've ruled out the possibility that the extension is causing the problem.

Describe the problem

当光标位于部分行内元素中 (超链接, 块引用) 时无法通过右键单击公式块弹出块菜单
When the cursor is located in a partial inline element (hyperlink, block reference), I cannot pop-up the block menu by right-clicking the formula block

复现步骤

  1. 插入一个超链接
  2. 将光标放置在超链接锚文本内部或末尾
  3. 右键单击数学公式块

Expected result

右键单击公式块可以正常弹出块菜单
Right-clicking on a math block does pop up the menu

Screenshot or screen recording presentation

思源笔记-bug反馈-50

Version environment

- Version: 2.10.0
- Operating System: 
- Browser (if used):

Log file

browser console log:

Uncaught TypeError: Cannot read properties of null (reading 'includes')
    at Oh (main.01382568bf9a5e5ab5bc.js:3292:2063)
    at HTMLDivElement.<anonymous> (main.01382568bf9a5e5ab5bc.js:3316:28629)

More information

No response

@Vanessa219 Vanessa219 added the Bug label Aug 25, 2023
@Vanessa219 Vanessa219 added this to the 2.10.2 milestone Aug 25, 2023
Vanessa219 added a commit that referenced this issue Aug 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants