-
Notifications
You must be signed in to change notification settings - Fork 122
Closed
Description
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?