Skip to content

Commit e9acc3a

Browse files
josh-ramos-22Josh Ramos
andauthored
[CMS] autofocus input box for new file/folder names (#378)
* made input box for new file autofocused * disabled autocomplete --------- Co-authored-by: Josh Ramos <josh.ramos@student.unsw.edu.au>
1 parent bdf7fca commit e9acc3a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

frontend/src/packages/dashboard/components/ConfirmationModal/ConfirmationWindow.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ export default function ConfirmationWindow({
123123
onChange={handleChange}
124124
onKeyDown={handleKeyDown}
125125
sx={{ marginRight: '10px' }}
126+
autoFocus
127+
autoComplete='off'
126128
/>
127129
<Button background="#73EEDC" onClick={handleSubmit}>
128130
submit

0 commit comments

Comments
 (0)