I have a picker that works fine on the desktop but the on close event does not fire when run in the simulator or on device (iPad Pro). Code for picker:
function open_picker() {
var pickerMapCentre = app.picker.create({
inputEl: '#map-centre-picker',
on: {close: function () {
mapCentrePickedUp = pickerMapCentre.getValue();
Cookies.set('mapCentrePicked', mapCentrePickedUp, {expire:10000000}); //save selected location for future use when opening map
}},
cols: [
{
textAlign: 'left',
values: ['Lechlade', 'Oxford', 'Benson', 'Reading', 'Maidenhead', 'Staines', 'Teddington', 'Westminster', 'Thames Barrier', 'Default']
}
],
toolbarCloseText: 'Save', //ensure user knows what will happen!!!
});
pickerMapCentre.open();
}
Any suggestions appreciated…