Skip to content

mouseleave event handler returns false and prevents event propagation #1055

@BrandonLWhite

Description

@BrandonLWhite

Fighting with this in 0.9.11 (jQuery). Why does chosen need to "return _this.mouse_leave(evt);" from the mouseleave event handler setup in Chosen.prototype.register_observers? The result is always false, due to:

AbstractChosen.prototype.mouse_leave = function() {
  return this.mouse_on_container = false;
};

This causes jQuery to StopPropagation, thus any parent elements will not get their mouseleave invoked. This is causing me grief (tooltip sort of stuff, FWIW).

If I eliminate the "return" then everything is cool. I'm scratching my head trying to figure out why its there to begin with. Can someone fix this? Or if it's as-designed please help me understand the purpose.

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