Skip to content

Commit

Permalink
fix: when repairing the two tables below inline, the problem of selec…
Browse files Browse the repository at this point in the history
…ting the parent in tr

closed #12
  • Loading branch information
Liberty-liu committed May 19, 2023
1 parent 0865926 commit 27bd966
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/formEditor/components/Selection/selectElement.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,8 @@ export default {
break
case 5:
let parent = props.data.context.parent
if (/^(inline)$/.test(parent.type)) {
if (/^(inline|tr)$/.test(parent.type)) {
parent = parent.context.parent
} else if (/^(tr)$/.test(parent.type)) {
parent = parent.context.parent.context.parent
}
setSelection(Array.isArray(parent) ? 'root' : parent)
break
Expand Down

0 comments on commit 27bd966

Please sign in to comment.