소스 검색

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