Skip to content

在容器块子块为空时 Ctrl+/ 弹出块菜单功能失效 #7656

Closed
@Zuoqiu-Yingyi

Description

@Zuoqiu-Yingyi

该问题是否已经被报告过了? Is there an existing issue for this?

  • 我已经搜索了 Issues,没有发现类似问题
    I have searched the existing issues

该问题是否能够在默认主题(daylight/midnight)下重现? 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

当光标位于列表项内, 且光标附近没有行内元素, 那么使用快捷键 Ctrl + / 无法选择当前块并弹出块菜单, 控制台输出如下内容:

Uncaught TypeError: Cannot read properties of null (reading 'replace')
    at zc (main.c6eaf19c4fbe32b13462.js:2293:1417)
    at Vc (main.c6eaf19c4fbe32b13462.js:2293:1711)
    at HTMLDivElement.<anonymous> (main.c6eaf19c4fbe32b13462.js:2293:12377)

期待的结果 Expected result

当光标位于列表项内, 且光标附近没有行内元素, 使用快捷键 Ctrl + / 选择对应的叶子块并弹出块菜单

截屏或者录屏演示 Screenshot or screen recording presentation

No response

版本环境 Version environment

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

日志文件 Log file

内核日志无有效信息输出

更多信息 More information

其他容器块(超级块/引述块)也存在该问题

Activity

changed the title [-]焦点位于列表项内时快捷键 `Ctrl + /` 选择当前块并弹出块菜单功能失效[/-] [+]焦点位于容器块内的叶子块时快捷键 `Ctrl + /` 选择当前块并弹出块菜单功能失效[/+] on Mar 14, 2023
changed the title [-]焦点位于容器块内的叶子块时快捷键 `Ctrl + /` 选择当前块并弹出块菜单功能失效[/-] [+]在容器块子块中 `Ctrl+/` 弹出块菜单功能失效[/+] on Mar 14, 2023
added this to the 2.8.0 milestone on Mar 14, 2023
added a commit that references this issue on Mar 14, 2023
changed the title [-]在容器块子块中 `Ctrl+/` 弹出块菜单功能失效[/-] [+]在容器块子块为空时 `Ctrl+/` 弹出块菜单功能失效[/+] on Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @88250@Vanessa219@Zuoqiu-Yingyi

      Issue actions

        在容器块子块为空时 `Ctrl+/` 弹出块菜单功能失效 · Issue #7656 · siyuan-note/siyuan