mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-22 16:03:39 +01:00
Merge pull request #644 from premeaswaran/main
Fixes #637: autofill folder name as collection name
This commit is contained in:
commit
e715a47eb6
@ -76,7 +76,14 @@ const CreateCollection = ({ onClose }) => {
|
||||
name="collectionName"
|
||||
ref={inputRef}
|
||||
className="block textbox mt-2 w-full"
|
||||
onChange={formik.handleChange}
|
||||
onChange = {
|
||||
(e) => {
|
||||
formik.handleChange(e);
|
||||
if (formik.values.collectionName === formik.values.collectionFolderName) {
|
||||
formik.setFieldValue("collectionFolderName", e.target.value);
|
||||
}
|
||||
}
|
||||
}
|
||||
autoComplete="off"
|
||||
autoCorrect="off"
|
||||
autoCapitalize="off"
|
||||
|
Loading…
Reference in New Issue
Block a user