相关文章推荐
睡不着的跑步鞋  ·  pyqt5 python3 ...·  3 年前    · 
大鼻子的枕头  ·  python - ...·  3 年前    · 
买醉的仙人球  ·  failed to load signer ...·  3 年前    · 

Detecting change event

$(document.body).on('change', '#camunda-ppPrice_list_operation-select', function(evt) {
    setTimeout(()=> {
      customSet(element, {pricelist: evt.target.value });    
    }, 1000);    

Changes not firing in the change event ?

Select2 is working, because customSet event is called , but the drawshape method is not called, bpmn-js not triggering in programmatic dropdown changes
For example if i change the selectbox using code it does not call customSet method , the issue is exactly related to the below mentioned issue.

How to trigger select option event,

Hey everyone, I hope everyone is doing good and keeping safe in these challenging times. If this is still an issue for anyone try the below

$("#yourListID").select2().val(json.data.members).trigger("change");
//Here the *json.data.members* is just a list of *[]*
//It contains only IDs - used as Value in the select element

Cheers