Closed
Description
该问题是否已经被报告过了? 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
复现步骤
- 进入代码片段编辑面板
- 新建一个 CSS 片段
- 启用该片段
- 点击确认
- 该片段对应的 CSS 样式已应用
- 再次进入代码片段编辑面板
- 删除该片段
- 点击确认
- 该片段对应的 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
Metadata
Metadata
Assignees
Type
Projects
Relationships
Development
No branches or pull requests
Activity
[-]启用的 CSS 片段若直接使用删除按钮删除时不会在 head 中移除该片段[/-][+]启用的 CSS 片段删除后不会在 head 中移除[/+][-]启用的 CSS 片段删除后不会在 head 中移除[/-][+]启用的 CSS 片段删除后不会在 `<head>` 中移除[/+][-]启用的 CSS 片段删除后不会在 `<head>` 中移除[/-][+]启用的 CSS 片段删除后没有从 `<head>` 中移除[/+][-]启用的 CSS 片段删除后没有从 `<head>` 中移除[/-][+]启用的 CSS 片段删除后未从 `<head>` 中移除[/+]🐛 fix #6826