Hi,
I’m trying to use the ion-picker component with multiple columns in a React Ionic app.
I need to set the possible values in one column based on the selected values in the other columns analogous to what the ion-datetime component is doing (where the values for day depend on the selected month and year).
The problem is that the picker (which receives the columns as <IonPicker … columns={this.state.columns} /> doesn’t seem to get refreshed when the state changes. Items that should be disabled are still there and only disappear when I close and reopen the picker.
Any idea how I can solve this? Or alternatively, does someone know an npm package that I can use instead which contains components for a datepicker and a custom picker which supports this functionality?
As a workaround you can mess with the DOM directly, the following Angular code shows only the one option in the second column when the first column value changes to 24.