浏览代码

Don't remove `Widget` CSS class in running side panel. (#4908)

Ian Rose 6 年之前
父节点
当前提交
213aaaf572
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      packages/running/src/index.tsx

+ 2 - 1
packages/running/src/index.tsx

@@ -289,8 +289,9 @@ export class RunningSessions extends Widget {
     this.options = options;
 
     // this can't be in the react element, because then it would be too nested
-    this.node.className = RUNNING_CLASS;
+    this.addClass(RUNNING_CLASS);
   }
+
   protected onUpdateRequest(msg: Message): void {
     ReactDOM.render(
       <RunningSessionsComponent