[Dropdown] Unable to attach handler to onChange or onAdd after a dropdown has been initialized #3744
Closed
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/