添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

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