TagSpaces is an offline, open source, document manager with tagging support
implementing file name selection of dialog opening
Ilian Sapundshiev80939563a9b6
diff --git a/app/components/dialogs/RenameFileDialog.js b/app/components/dialogs/RenameFileDialog.jsindex 5b5ee3d38..d770e198b 100644--- a/app/components/dialogs/RenameFileDialog.js+++ b/app/components/dialogs/RenameFileDialog.js@@ -75,10 +75,14 @@ class RenameFileDialog extends React.Component<Props, State> {open: true,fileName: extractFileName(nextProps.selectedFilePath),filePath: nextProps.selectedFilePath+ }, () => {+ this.fileName.select();});}};+ fileName;+handleInputChange = (event: Object) => {const target = event.target;const value = target.type === 'checkbox' ? target.checked : target.value;@@ -124,6 +128,7 @@ class RenameFileDialog extends React.Component<Props, State> {error={this.state.inputError}margin="dense"name="fileName"+ inputRef={(ref) => { this.fileName = ref; }}label={i18n.t('core:renameNewFileName')}onChange={this.handleInputChange}value={this.state.fileName}