mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-26 18:03:27 +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"
|
name="collectionName"
|
||||||
ref={inputRef}
|
ref={inputRef}
|
||||||
className="block textbox mt-2 w-full"
|
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"
|
autoComplete="off"
|
||||||
autoCorrect="off"
|
autoCorrect="off"
|
||||||
autoCapitalize="off"
|
autoCapitalize="off"
|
||||||
|
Loading…
Reference in New Issue
Block a user