From a138a66e77528bcbd6fcd44c7e63d73d3abded3e Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Wed, 29 Jan 2020 11:22:03 +0000 Subject: [PATCH] Let users paste text if they've already started filtering invite targets Fixes https://github.com/vector-im/riot-web/issues/11814 --- src/components/views/dialogs/InviteDialog.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/views/dialogs/InviteDialog.js b/src/components/views/dialogs/InviteDialog.js index afa204af04..ee0d26c48d 100644 --- a/src/components/views/dialogs/InviteDialog.js +++ b/src/components/views/dialogs/InviteDialog.js @@ -747,6 +747,12 @@ export default class InviteDialog extends React.PureComponent { }; _onPaste = async (e) => { + if (this.state.filterText) { + // if the user has already typed something, just let them + // paste normally. + return; + } + // Prevent the text being pasted into the textarea e.preventDefault();