stable

Clone or download

Read-only

feat: Clear search field when dropdown is closed w/out selection

part of story #24969 [modal] add and remove links (replace current artifact link) How to test: - Open the link selector, type a query without selecting an item - Click outside the dropdown - Open it again --> The search field has been cleared - Open the link selector, type a query and select an item - Click outside the dropdown - Open it again --> The search field has not been cleared, the dropdown has the same state as before it was closed Change-Id: I5603f34815b282aa59cce91393a4d1503cb4f73a

Modified Files

Name
M lib/frontend/link-selector/src/dropdown/DropdownManager.ts +7 −1 Go to diff View file
M lib/frontend/link-selector/src/events/EventManager.test.ts +190 −100 Go to diff View file
M lib/frontend/link-selector/src/events/EventManager.ts +16 −6 Go to diff View file
M lib/frontend/link-selector/src/link-selector.ts +2 −1 Go to diff View file
M lib/frontend/link-selector/src/selection/SelectionManager.ts +10 −1 Go to diff View file
A lib/frontend/link-selector/tests/stubs/ManageDropdownStub.ts +56 −0 Go to diff View file
A lib/frontend/link-selector/tests/stubs/ManageSelectionStub.ts +49 −0 Go to diff View file