mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-11 03:20:39 +00:00
parent
d0de4fd8f9
commit
dba506a20e
2 changed files with 4 additions and 1 deletions
resources/js/components
|
@ -7,6 +7,8 @@ class EntitySelectorPopup {
|
|||
setup() {
|
||||
this.elem = this.$el;
|
||||
this.selectButton = this.$refs.select;
|
||||
this.searchInput = this.$refs.searchInput;
|
||||
|
||||
window.EntitySelectorPopup = this;
|
||||
|
||||
this.callback = null;
|
||||
|
@ -20,6 +22,7 @@ class EntitySelectorPopup {
|
|||
show(callback) {
|
||||
this.callback = callback;
|
||||
this.elem.components.popup.show();
|
||||
this.searchInput.focus();
|
||||
}
|
||||
|
||||
hide() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue