You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
Merge pull request #3970 from matrix-org/travis/user-lists/fix-paste
Let users paste text if they've already started filtering invite targets
This commit is contained in:
@ -758,6 +758,12 @@ export default class InviteDialog extends React.PureComponent {
|
|||||||
};
|
};
|
||||||
|
|
||||||
_onPaste = async (e) => {
|
_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
|
// Prevent the text being pasted into the textarea
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user