When a lookup modal is closed, focus should return to the Link/Replace button so that a user using keyboard-only can use the Edit/New form.
When a lookup modal is closed, focus appears to be unassigned. Pressing tab again moves to the main FOLIO app/horizontal menu. This applies to the lookup modals below:
- PO line lookup
- License lookup
- Organization lookup
- Usage data lookup
- Related Agreement lookup
When a lookup modal is closed either because the user selected an item in the lookup modal or the user closed the modal without selecting an item, focus should be given to the "Replace [item]" / "Link [item]" button.
Note that the behaviour of the User lookup (in Internal contacts) is correct.
Steps to recreate
- In the "Organizations" accordion select the "Add organization to agreement" button,
- Select the "Link organization" button to open the Organization lookup modal.
- Close the modal using the "X" button, this returns the user to the Edit/new pane.
Focus should have returned to the "Link organization" button.