You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-11-29 21:23:11 +03:00
Let users paste text if they've already started filtering invite targets
Fixes https://github.com/vector-im/riot-web/issues/11814
This commit is contained in:
@@ -747,6 +747,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