Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3970 from matrix-org/travis/user-lists/fix-paste
Browse files Browse the repository at this point in the history
Let users paste text if they've already started filtering invite targets
  • Loading branch information
turt2live authored Jan 29, 2020
2 parents e200988 + a138a66 commit 45735d5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/views/dialogs/InviteDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 45735d5

Please sign in to comment.