mirror of
https://github.com/vector-im/element-web.git
synced 2025-10-18 10:51:54 +02:00
Consider tab completions as modifications for editing purposes to unlock sending
This commit is contained in:
parent
534f0cc89e
commit
0bda80c57d
@ -93,7 +93,7 @@ interface IProps {
|
|||||||
initialCaret?: DocumentOffset;
|
initialCaret?: DocumentOffset;
|
||||||
|
|
||||||
onChange();
|
onChange();
|
||||||
onPaste(event: ClipboardEvent<HTMLDivElement>, model: EditorModel): boolean;
|
onPaste?(event: ClipboardEvent<HTMLDivElement>, model: EditorModel): boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface IState {
|
interface IState {
|
||||||
@ -554,10 +554,12 @@ export default class BasicMessageEditor extends React.Component<IProps, IState>
|
|||||||
}
|
}
|
||||||
|
|
||||||
private onAutoCompleteConfirm = (completion: ICompletion) => {
|
private onAutoCompleteConfirm = (completion: ICompletion) => {
|
||||||
|
this.modifiedFlag = true;
|
||||||
this.props.model.autoComplete.onComponentConfirm(completion);
|
this.props.model.autoComplete.onComponentConfirm(completion);
|
||||||
};
|
};
|
||||||
|
|
||||||
private onAutoCompleteSelectionChange = (completion: ICompletion, completionIndex: number) => {
|
private onAutoCompleteSelectionChange = (completion: ICompletion, completionIndex: number) => {
|
||||||
|
this.modifiedFlag = true;
|
||||||
this.props.model.autoComplete.onComponentSelectionChange(completion);
|
this.props.model.autoComplete.onComponentSelectionChange(completion);
|
||||||
this.setState({completionIndex});
|
this.setState({completionIndex});
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user