Skip to content

TypeError: search is not a function #784

Closed
@aleksrutins

Description

@aleksrutins

When attempting to search through the bar in the top menu, it fails with an error of 'search is not a function'. The thing is, window.search is a function, and I can use it through DevTools. One solution that works (on my machine, at least) is to change the keyup event on input#search here:

@keyup="search(event).then(function({ results: hits }) { results = true; threads = hits[0].hits; articles = hits[1].hits; })"

to explicitly reference window.search instead of just search.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions