Skip to content

Resolve "When the application builder editor loads with elements, automatically select the first one."

What is in this MR

When the application builder editor loads with elements, at the moment nothing is selected. This MR will select the first element in the page so that keyboard shortcuts can be immediately used. A secondary fix was added, for the element menu's delete button, so that after an element is deleted we select the closest sibling. This already existed in the keyboard shortcut delete functionality but was missing from the delete button.

How to test this MR

  • Create a mix of pages with and without elements.
  • Swap between them from the left hand sidebar.
  • Note how we select the first element by default, and you can immediately use keyboard shortcuts.

Merge Request Checklist

  • A changelog entry has been created if required.
  • New/updated Premium/Enterprise features are separated correctly in the premium or enterprise folder
  • The latest Chrome and Firefox have been used to test any new frontend features
  • Documentation has been updated
  • Quality Standards are met
  • Performance: tables are still fast with 100k+ rows, 100+ field tables
  • The redoc API pages have been updated for any REST API changes
  • Our custom API docs are updated for changes to endpoints accessed via api tokens
  • The UI/UX has been updated following UI Style Guide

Closes #2597 (closed)

Edited by Peter Evans

Merge request reports