提交 44a62166 编写于 作者: J Johannes Rieken
上级 d4a57531
......@@ -134,6 +134,14 @@ export class RenameInputField implements IContentWidget {
};
}
afterRender(position: ContentWidgetPositionPreference | null): void {
if (!position) {
// cancel rename when input widget isn't rendered anymore
this.cancelInput(true);
}
}
private _currentAcceptInput?: (wantsPreview: boolean) => void;
private _currentCancelInput?: (focusEditor: boolean) => void;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册