TexasDigitalLibrary / Vireo

Vireo is a turnkey Electronic Thesis and Dissertation (ETD) Management System.
https://texasdigitallibrary.atlassian.net/wiki/spaces/VUG/pages/87490642/About
GNU General Public License v2.0
46 stars 35 forks source link

Cursor should auto-focus in text box when additional field entries are added #1917

Open jcross2562 opened 5 months ago

jcross2562 commented 5 months ago

Describe the bug Some fields allow multiple entries to be added, especially in the Admin view, through the use of the plus (+) sign. For the basic single entry (assuming it is already there), when you click on the pencil icon to edit the field, the cursor immediately appears in the field (auto focus) and allows you to type. However, when you click the plus sign to add a new entry and then click the new pencil icon, the cursor does NOT appear and requires that you click in the new field to start typing. This seems to be an unnecessary extra click, especially if there are several items that need to be added.

To Reproduce Steps to reproduce the behavior:

  1. Go to the Admin view and select an open submission.
  2. Click on the pencil icon for the existing field item and see the cursor appear in the field.
  3. Click on the plus sign to add a new field item.
  4. Click on the pencil icon for the new field item.
  5. Verify that the cursor does not appear; you need to click in the text box to display the cursor to start typing.

Expected behavior When you click on the pencil icon for the new field item, the cursor should automatically appear in the text box so that the user can start typing immediately. (This is what happens with the first field, so it should replicate for all new fields.)