NativeScript / NativeScript/plugins
nativescript vue DatePickerField no v-model support?
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 206
- Forks
- 123
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 1
Description
Appologies in advance if i'm doing something wrong, found it weird noone else reported this.
Tried all sorts of combinations, binding to a string or a Date() but no luck.
<DatePickerField hint="Birthdate" :minDate="minDate" :maxDate="maxDate" v-model="birthDate" />
export default class About extends Vue {
minDate = new Date("1900-01-01");
maxDate = new Date("2010-01-01");
birthDate = new Date("2000-01-01");
...
An uncaught Exception occurred on "main" thread.
Calling js method onCreateView failed
TypeError: dateTime.getTime is not a function
StackTrace:
formatDateTime(file:///data/data/org.blah/files/app/vendor.js:43966:54)
at getFormattedDate(file:///data/data/org.blah/files/app/vendor.js:43169:89)
at updateText(file:///data/data/org.blah/files/app/vendor.js:43150:38)
at _updateRegionalSettings(file:///data/data/org.blah/files/app/vendor.js:43177:14)
at initNativeView(file:///data/data/org.blah/files/app/vendor.js:43154:14)
Thanks,
Michael
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the DatePickerField example with the shown Date values and v-model binding, then trace the DatePickerField date handling behind the formatDateTime and getFormattedDate stack frames. Done means the example no longer throws the getTime error and v-model works with the documented date value type.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100