Home » Javascript » How to get dojo filteringSelect to fire when previous choice is reselected

How to get dojo filteringSelect to fire when previous choice is reselected

Posted by: admin November 1, 2017 Leave a comment

Questions:

I am using dijit/form/FilteringSelect to present a list of parks on an ArcGIS map. I zoom to the park when the park is selected from the list. If the user zooms out on the map I want them to be able to select the same park and zoom to it again. If I use on(Select, 'change', zoom()) it only zooms when you choose a different park. If I use on(Select, 'click', zoom()) it zooms as soon as I click on the dropdown to make the choice. If I use on(Select, 'blur', zoom()) it only zooms if I click on something else after I make the selection. I need to be able to zoom when any selection is made.

Answers: