Skip to content

Conversation

@josh-ramos-22
Copy link
Contributor

@josh-ramos-22 josh-ramos-22 commented Jul 14, 2023

Why are the changes needed?

Currently, when the user opens the New File or New Modal modal, the text box to input the new file/folder name is unfocused by default. Also, when typing a new file name, the browser provides autocomplete suggestions based on previous inputs, which are mostly irrelevant in this context.

Changes

  • Added autoFocus and autoComplete = 'off' to the TextField in ConfirmationModal.tsx to enable auto focus and disable autocomplete.

Copy link
Contributor

@lauraw0 lauraw0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

niceee merge whenever

@josh-ramos-22 josh-ramos-22 merged commit e9acc3a into main Sep 4, 2023
@josh-ramos-22 josh-ramos-22 deleted the CMS_Autofocus_input_box_for_new_files branch September 4, 2023 00:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants