mirror of https://github.com/vector-im/riot-web
Let users paste text if they've already started filtering invite targets
Fixes https://github.com/vector-im/riot-web/issues/11814pull/21833/head
parent
95edadbfa1
commit
a138a66e77
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue