Skip to content

callback docs are wrong #571

@tisdall

Description

@tisdall

The docs for callback say that it takes 4 args and they are (itemKey, opt, rootMenu, originalEvent). However, looking at the source code shows this: callback.call(root.$trigger, key, root, e). So, the docs should drop the "rootMenu" as there's only 3 args passed and the third is the event. (maybe the docs should also state that this is assigned to be opt.$trigger)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions