mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-03 12:29:24 +08:00
fix(amis-saas-7727): 代码编写问题修正
Change-Id: I42d5b784787917bd270590ae5575cf34be26e0cd
This commit is contained in:
parent
c0cf011352
commit
b98c987b9e
@ -525,7 +525,7 @@ export const EditorNode = types
|
||||
|
||||
function getClosestParentByType(type: string): EditorNodeType | void {
|
||||
let node = self;
|
||||
while ((node = node.parent)) {
|
||||
while (node === node.parent) {
|
||||
if (node.schema.type === type) {
|
||||
return node as EditorNodeType;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user