dijit.form

Dojo Select onChange event firing when changing value programmatically

这一生的挚爱 提交于 2019-11-28 00:00:00
问题 I have a dojo (dijit) select dropdown that calls a js function onChange. I was expecting this to only call the onChange function when the user changes the value in the dropdown, however, it even calls the onChange function when I programmatically change the value of the dropdown from js code. How do I get it to only call the function when the user changes the dropdown value? It shouldn't call the function when I programmatically change the value. <select jsId="ddlBoundaryType" id=