You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When setting the picker options for an ion-datetime, the PickerOptions interface requires a columns key, which is actually not required according to the examples:
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Bug Report
Ionic Info
Describe the Bug
When setting the picker options for an
ion-datetime
, thePickerOptions
interface requires acolumns
key, which is actually not required according to the examples:https://github.com/ionic-team/ionic/blob/44b0eaba8514730a61a8f79561fcd4b219358155/core/src/components/datetime/test/preview/index.html#L152-L165
Related Code
Interface comes from here:
https://github.com/ionic-team/ionic/blob/44b0eaba8514730a61a8f79561fcd4b219358155/core/src/components/picker/picker-interface.ts#L3-L16
Expected Behavior
Maybe change it to
columns?: PickerColumn[]
?Additional Context
As a workaround, one can either add an empty
columns
array or set the options type toany
(but using the latter means losing intellisense):The text was updated successfully, but these errors were encountered: