1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-27 06:01:54 +03:00

Editors: Updated entity link select to pre-fill with selection

Updated all uses across both editors, so the entity link selector popup
now initates a search with the selection text if existing.

For #4571
This commit is contained in:
Dan Brown
2023-09-24 18:33:33 +01:00
parent e9664dc678
commit 21badde4ef
5 changed files with 18 additions and 5 deletions

View File

@ -87,6 +87,11 @@ export class EntitySelector extends Component {
this.searchInput.focus();
}
searchText(queryText) {
this.searchInput.value = queryText;
this.searchEntities(queryText);
}
showLoading() {
this.loading.style.display = 'block';
this.resultsContainer.style.display = 'none';