Переглянути джерело

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