Skip to content

[Dropdown] Unable to attach handler to onChange or onAdd after a dropdown has been initialized #3744

Closed
@douglasg14b

Description

If a dropdown has been initialized, you cannot add a handler for the onChange or onAdd events, it only works if they are added during initialization.

During init:

$('#testThings2').dropdown({ onAdd: function(addedValue){ console.log(addedValue); } });

After Init:

$('#testThings').dropdown('setting', 'onAdd', function(addedValue){console.log(addedValue)});

JSFiddle: https://jsfiddle.net/q7yg99Ld/

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions