Skip to content

启用的 CSS 片段删除后未从 <head> 中移除 #6826

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

描述问题 Describe the problem

复现步骤

  1. 进入代码片段编辑面板
  2. 新建一个 CSS 片段
  3. 启用该片段
  4. 点击确认
  5. 该片段对应的 CSS 样式已应用
  6. 再次进入代码片段编辑面板
  7. 删除该片段
  8. 点击确认
  9. 该片段对应的 CSS 样式未取消, 因为该 css 片段对应的 style 标签依然保留

期待的结果 Expected result

删除已经激活的 CSS 片段时同时移除对应的 style 标签

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

No response

版本环境 Version environment

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

日志文件 Log file

无有效信息输出

更多信息 More information

No response

Activity

changed the title [-]启用的 CSS 片段若直接使用删除按钮删除时不会在 head 中移除该片段[/-] [+]启用的 CSS 片段删除后不会在 head 中移除[/+] on Dec 9, 2022
changed the title [-]启用的 CSS 片段删除后不会在 head 中移除[/-] [+]启用的 CSS 片段删除后不会在 `<head>` 中移除[/+] on Dec 9, 2022
changed the title [-]启用的 CSS 片段删除后不会在 `<head>` 中移除[/-] [+]启用的 CSS 片段删除后没有从 `<head>` 中移除[/+] on Dec 9, 2022
added this to the 2.5.4 milestone on Dec 9, 2022
changed the title [-]启用的 CSS 片段删除后没有从 `<head>` 中移除[/-] [+]启用的 CSS 片段删除后未从 `<head>` 中移除[/+] on Dec 9, 2022
added a commit that references this issue on Dec 9, 2022
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

        启用的 CSS 片段删除后未从 `<head>` 中移除 · Issue #6826 · siyuan-note/siyuan