Skip to content

[CMS] autofocus input box for new file/folder names #378

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 4, 2023

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.

2 participants