Skip to content

Submitting form with typeahead inside #165

@mic4ael

Description

@mic4ael

Together with my teammates today we stumbled upon an error in one of our custom jQuery widgets which uses the typeahead library internally. The problem was caused by calling hideLayout when submitting a form. After some investigations we found the lines which are the main culprit.
Link to the source code

// Means the container is already hidden
// if (!this.container.hasClass('result')) return;

It kind of makes sense to check if layout is already shown and if there is a necessity to hide it, thus my question is if this comment is intended? If it is, then, can we get exaplanation why?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions