From 3410bf09358309ddf9aa6a44d8fdc2e3f47bc506 Mon Sep 17 00:00:00 2001 From: David Sevilla Martin Date: Fri, 31 Jan 2020 18:41:33 -0500 Subject: [PATCH] use .render a bit more... hopefully no weird errors or issues arise --- js/src/common/components/ModalManager.tsx | 2 +- js/src/forum/components/NotificationsDropdown.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/src/common/components/ModalManager.tsx b/js/src/common/components/ModalManager.tsx index 5e652cb8f..faf302188 100644 --- a/js/src/common/components/ModalManager.tsx +++ b/js/src/common/components/ModalManager.tsx @@ -41,7 +41,7 @@ export default class ModalManager extends Component { clearTimeout(this.hideTimeout); this.showing = true; - this.node = component.tag ? component : m(component); + this.node = component.tag ? component : component.render(); // if (app.current) app.current.retain = true; diff --git a/js/src/forum/components/NotificationsDropdown.tsx b/js/src/forum/components/NotificationsDropdown.tsx index 3a6b474bb..26d4eebde 100644 --- a/js/src/forum/components/NotificationsDropdown.tsx +++ b/js/src/forum/components/NotificationsDropdown.tsx @@ -40,7 +40,7 @@ export default class NotificationsDropdown extends Dropdown { getMenu() { return (
- {this.showing ? m(this.list) : ''} + {this.showing ? this.list.render() : ''}
); }