From 8e7564b9a388b7e63432139e3c3f8e443acb478f Mon Sep 17 00:00:00 2001 From: Richard Lewis Date: Mon, 26 Feb 2018 17:47:52 +0000 Subject: [PATCH] Wrap the close menu trigger in a timeout --- src/components/views/rooms/Stickerpicker.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/views/rooms/Stickerpicker.js b/src/components/views/rooms/Stickerpicker.js index fb9e7dc5f0..656d2826b4 100644 --- a/src/components/views/rooms/Stickerpicker.js +++ b/src/components/views/rooms/Stickerpicker.js @@ -231,7 +231,9 @@ export default class Stickerpicker extends React.Component { Modal.createTrackedDialog('Integrations Manager', '', IntegrationsManager, { src: src, }, "mx_IntegrationsManager"); - this.stickersMenu.close(); + + // Wrap this in a timeout in order to avoid the DOM node from being pulled from under its feet + setTimeout(() => this.stickersMenu.close()); } render() {