Skip to content

Commit

Permalink
fix: checkbox list select error in paper horizontal mode #997
Browse files Browse the repository at this point in the history
  • Loading branch information
Hufe921 committed Feb 11, 2025
1 parent e6c681d commit 5442f5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/editor/core/position/Position.ts
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ export class Position {
// 是否在头部
const headStartX =
headElement.listStyle === ListStyle.CHECKBOX
? this.options.margins[3]
? this.draw.getMargins()[3]
: headPosition.coordinate.leftTop[0]
if (x < headStartX) {
// 头部元素为空元素时无需选中
Expand Down

0 comments on commit 5442f5e

Please sign in to comment.