Hi, my picker (Ionic 5 Angular), have columns that has relationship each other, i’m using ionPickerColChange event to avoid dependance like so:
picker.addEventListener('ionPickerColChange', async (event: any) => {
let data: PickerColumn = event.detail;
if (data.name == "Products") {
let selectedProduttore: PickerColumnOption = data.options.find(p => p.selected == true);
let columnProdotti: PickerColumn = this.dependentColumnsGlobal.find(p => p.name == "Products");
selectedProduttore.value));
let columnsOptsProdottiUpdated = columnProdotti.options.filter(p => p.value.idSoftwareHouseProvenienza == selectedProduttore.value);
columnsOptsProdottiUpdated[0].selected = true;
columnProdotti.options = columnsOptsProdottiUpdated;
picker.columns[1] = columnProdotti;
}
My problem is that picker doens’t refresh after i set column. If i close and reopen picker i can see colum update…How to refresh picker? In Ionic 4 there was forceUpdate but in Ionic 5 is deprecated.