fix show overlay

This commit is contained in:
Salvatore Giordano
2020-11-19 11:50:41 +01:00
parent 6a8e76dc18
commit 199831a7ec
+4 -6
View File
@@ -934,12 +934,10 @@ class MessageInputState extends State<MessageInput> {
if (visible) { if (visible) {
_onChange(); _onChange();
} else { } else {
if (_commandsOverlay != null) { _commandsOverlay?.remove();
_commandsOverlay.remove(); _commandsOverlay = null;
} _mentionsOverlay?.remove();
if (_mentionsOverlay != null) { _mentionsOverlay = null;
_mentionsOverlay.remove();
}
} }
}); });
} }