Skip to content

Commit

Permalink
fix: insert area error when cursor is within table #891
Browse files Browse the repository at this point in the history
  • Loading branch information
Hufe921 committed Nov 15, 2024
1 parent 64b4100 commit b16aa71
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/editor/core/draw/interactive/Area.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ export class Area {
if (this.zone.getZone() !== EditorZone.MAIN) {
this.zone.setZone(EditorZone.MAIN)
}
// 跳出表格
this.draw.getPosition().setPositionContext({
isTable: false
})
// 设置插入位置
const { id, value, area, position } = payload
if (position === LocationPosition.BEFORE) {
Expand Down

0 comments on commit b16aa71

Please sign in to comment.