mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-20 17:15:51 +02:00
Fixed error that algolia autocomplete input appeared multiple times after a link was clicked
This commit is contained in:
parent
25a8642749
commit
f70f6c39ce
1 changed files with 2 additions and 2 deletions
|
@ -30,7 +30,7 @@ export default class extends Controller {
|
|||
|
||||
_autocomplete;
|
||||
|
||||
connect() {
|
||||
initialize() {
|
||||
// The endpoint for searching parts
|
||||
const base_url = this.element.dataset.autocomplete;
|
||||
// The URL template for the part detail pages
|
||||
|
@ -45,7 +45,7 @@ export default class extends Controller {
|
|||
|
||||
this._autocomplete = autocomplete({
|
||||
container: this.element,
|
||||
panelContainer: document.body,
|
||||
panelContainer: document.getElementById("navbar-frame"),
|
||||
panelPlacement: 'end',
|
||||
plugins: [recentSearchesPlugin],
|
||||
openOnFocus: true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue