Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 修复编辑器 combo 插入组件后不在子节点的情况 #11756

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/amis-editor-core/src/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1013,8 +1013,8 @@ export class EditorManager {
// crud 和 table 等表格类容器
regionNodeId = curActiveId;
regionNodeRegion = 'columns';
} else if (node.schema.items && isLayoutPlugin(node.schema)) {
// 当前节点是布局类容器节点
} else if (node.schema.items && (isLayoutPlugin(node.schema) || node.type === 'combo')) {
// 当前节点是布局类容器节点或 combo 组件
regionNodeId = curActiveId;
regionNodeRegion = 'items';
} else if (node.schema.body) {
Expand Down