mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-12 02:29:59 +00:00
Fix issue with double-clicking whitelist field whilst editing
This commit is contained in:
@@ -282,13 +282,15 @@ class EditableListItem extends Component<
|
|||||||
}
|
}
|
||||||
|
|
||||||
private handleEditBegin () {
|
private handleEditBegin () {
|
||||||
this.setState({
|
if (!this.state.editing) {
|
||||||
editing: true
|
this.setState({
|
||||||
, editValue: this.props.text
|
editing: true
|
||||||
}, () => {
|
, editValue: this.props.text
|
||||||
this.input?.focus();
|
}, () => {
|
||||||
this.input?.select();
|
this.input?.focus();
|
||||||
});
|
this.input?.select();
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private handleEditEnd (ev: React.FocusEvent<HTMLInputElement>) {
|
private handleEditEnd (ev: React.FocusEvent<HTMLInputElement>) {
|
||||||
|
|||||||
Reference in New Issue
Block a user