mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-13 00:41:59 +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:
@ -15,9 +15,14 @@ export class EntitySelectorPopup extends Component {
|
||||
window.$events.listen('entity-select-confirm', this.handleConfirmedSelection.bind(this));
|
||||
}
|
||||
|
||||
show(callback) {
|
||||
show(callback, searchText = '') {
|
||||
this.callback = callback;
|
||||
this.getPopup().show();
|
||||
|
||||
if (searchText) {
|
||||
this.getSelector().searchText(searchText);
|
||||
}
|
||||
|
||||
this.getSelector().focusSearch();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user