Skip to content

Commit

Permalink
fix: 修复添加 afterToggle 配置后,调整组件初始化变更导致的 posiiton: relative 菜单显示逻辑错误问题
Browse files Browse the repository at this point in the history
  • Loading branch information
yaohaixiao committed Aug 3, 2023
1 parent f19de1c commit 5f8483b
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/js/outline.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/js/outline.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion outline.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion outline.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yaohaixiao/outline.js",
"version": "3.8.0",
"version": "3.8.1",
"description": "outline.js - 自动生成文章导读(Table of Contents)导航的 JavaScript 工具。",
"main": "outline.min.js",
"scripts": {
Expand Down
6 changes: 2 additions & 4 deletions src/outline.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,9 @@ class Outline extends Base {
hasOffset: true,
hasPadding: false,
customClass,
afterToggle: (closed) => {
afterClosed: () => {
const toolbar = this.toolbar
if (closed) {
toolbar.toggle()
}
toolbar.toggle()
}
})
parentElement = this.drawer.$main
Expand Down

0 comments on commit 5f8483b

Please sign in to comment.