From 67f755efcbdd1136646ab25c75d3e89d0f96dc8d Mon Sep 17 00:00:00 2001 From: Richard Lewis Date: Thu, 29 Mar 2018 17:26:54 +0100 Subject: [PATCH] Comment. --- src/components/views/rooms/Stickerpicker.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/views/rooms/Stickerpicker.js b/src/components/views/rooms/Stickerpicker.js index 2759bd51b8..12917e209d 100644 --- a/src/components/views/rooms/Stickerpicker.js +++ b/src/components/views/rooms/Stickerpicker.js @@ -108,7 +108,8 @@ export default class Stickerpicker extends React.Component { this._getStickerPickerWidget(); return; } else if (payload.action === "stickerpicker_close") { - setTimeout(() => 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()); } }