Merge pull request #3970 from matrix-org/travis/user-lists/fix-paste

Let users paste text if they've already started filtering invite targets
pull/21833/head
Travis Ralston 2020-01-29 11:45:21 +00:00 committed by GitHub
commit 45735d5ae3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -758,6 +758,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();