ソースを参照

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