Thursday, May 2, 2024
1 change · master
Enhancements to existing features
Website editors now land directly in the block search field when entering edit mode or returning to the Blocks tab. The search field is also cleared when switching tabs, reducing extra clicks and preventing old searches from getting in the way.
Original PR description
Steps to reproduce:
1. Click on 'Edit Website'.
2. Observe that the focus is not in snippet search input.
3. Switch tabs from 'Block' to another and vice versa. Two things
should happen:
a. Focus should return to the snippet search input.
b. The search input should be cleared.
Purpose:
The purpose of this PR is to save an extra step by automatically
setting focus to the snippet search input when user stars edit mode
previously we have to do it manually by doing something like:
Edit > Click on the search input > Type the name of the block.
Also it handles two more scenarios :
1. Focus is set on the snippet search input when switching from any
tab to the 'Block' tab in the snippet menu.
2. Any text in the search input is cleared when the user switches
tabs.
task-3775473