提交 4486772a 编写于 作者: B Benjamin Pasero

Uncaught TypeError: Cannot read property 'isActive' of undefined (fixes #27257)

上级 847fde97
......@@ -212,7 +212,7 @@ export class TabsTitleControl extends TitleControl {
private updateDropFeedback(element: HTMLElement, isDND: boolean, index?: number): void {
const isTab = (typeof index === 'number');
const isActiveTab = isTab && this.context.isActive(this.context.getEditor(index));
const isActiveTab = isTab && this.context && this.context.isActive(this.context.getEditor(index));
// Background
const noDNDBackgroundColor = isTab ? this.getColor(isActiveTab ? TAB_ACTIVE_BACKGROUND : TAB_INACTIVE_BACKGROUND) : null;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册