mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +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;
|
_autocomplete;
|
||||||
|
|
||||||
connect() {
|
initialize() {
|
||||||
// The endpoint for searching parts
|
// The endpoint for searching parts
|
||||||
const base_url = this.element.dataset.autocomplete;
|
const base_url = this.element.dataset.autocomplete;
|
||||||
// The URL template for the part detail pages
|
// The URL template for the part detail pages
|
||||||
|
@ -45,7 +45,7 @@ export default class extends Controller {
|
||||||
|
|
||||||
this._autocomplete = autocomplete({
|
this._autocomplete = autocomplete({
|
||||||
container: this.element,
|
container: this.element,
|
||||||
panelContainer: document.body,
|
panelContainer: document.getElementById("navbar-frame"),
|
||||||
panelPlacement: 'end',
|
panelPlacement: 'end',
|
||||||
plugins: [recentSearchesPlugin],
|
plugins: [recentSearchesPlugin],
|
||||||
openOnFocus: true,
|
openOnFocus: true,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue