Skip to content

Problem with SelectDateComponent on chapter 17 #5

@RenanEduardo

Description

@RenanEduardo

Hello, I am having problems trying to use the SelectDateComponent as a modal.
Every time I tapped into <TextField [text]="page.BirthDate | date:'shortDate'" class="input" editable="false" (tap)="onBirthDateTap()" hint="Enter a birth date..."> via onBirthDateTap() the modal won't open and the following error appears on the console.

JS ERROR TypeError: value.getFullYear is not a function. (In 'value.getFullYear()', 'value.getFullYear' is undefined)

My setup:
Component │ Current version │ Latest version │ Information │
│ nativescript │ 3.4.1 │ 3.4.1 │ Up to date │
│ tns-core-modules │ 3.4.0 │ 3.4.0 │ Up to date │
│ tns-android │ │ 3.4.1 │ Not installed │
│ tns-ios │ 3.4.1 │ 3.4.1 │ Up to date

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions