Skip to content

Commit 897f4b6

Browse files
committed
Allow paste space location
1 parent f495cf5 commit 897f4b6

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/components/organisms/FSStorageCreateForm.tsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useState, useCallback } from 'react'
1+
import React, { useState, useCallback, ChangeEvent } from 'react'
22
import { useTranslation } from 'react-i18next'
33
import { useRouter } from '../../lib/router'
44
import { useDb } from '../../lib/db'
@@ -69,13 +69,11 @@ const FSStorageCreateForm = () => {
6969
<ButtonGroup>
7070
<FormFolderSelectorInput
7171
type='text'
72-
onClick={openDialogAndStoreLocation}
73-
readOnly
74-
value={
75-
location.trim().length === 0
76-
? t('folder.noLocationSelected')
77-
: location
78-
}
72+
onChange={(event: ChangeEvent<HTMLInputElement>) => {
73+
setLocation(event.target.value)
74+
}}
75+
placeholder={t('folder.noLocationSelected')}
76+
value={location}
7977
/>
8078
<FormFolderSelectButtonContainer>
8179
<Button

0 commit comments

Comments
 (0)