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() : ''}
); }