Nativescript-ui-feedback: RadListView - Vue - Misleading validation message for props _items_

Created on 29 Jul 2019  路  3Comments  路  Source: ProgressNS/nativescript-ui-feedback

When you use an array as collection of items for a RadListView you continously get this error message:

This is due to the fact that the prop is defined as:

items: {
            type: Object,
            validator: function (val) { return Array.isArray(val) || val instanceof observable_array_1.ObservableArray; },
            required: true
        },

Apprently, if you define a validator, you don't specify a type.
Anyway, if you remove the line type: Object the error disappears and validator is still on.:)

Which platform(s) does your issue occur on?

Both

Please provide the following version numbers that your issue occurs with:

  • Progress NativeScript UI plugin version: 7.0.2
  • CLI: 6.0.2
  • Cross-platform modules: 6.0.1
  • Runtime(s): 6.0.0

Please tell us how to recreate the issue in as much detail as possible.

Create a RadListView and pass and array to the _for_ attribute

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.

backlog bug listview low

Most helpful comment

I have the same issue.
For reproduction just check the demo you provide in #1182 (https://play.nativescript.org/?template=play-vue&id=BaAIeA&v=6).
Bildschirmfoto 2019-07-31 um 16 49 41

Running the preview on my Android shows the same warning.

All 3 comments

Hi @vratojr,
I've checked the described case, however, was unable to recreate a similar problem on my side. On that matter, can you send us a demo project while using {N} Playground, where the issue can be reproduced?

I have the same issue.
For reproduction just check the demo you provide in #1182 (https://play.nativescript.org/?template=play-vue&id=BaAIeA&v=6).
Bildschirmfoto 2019-07-31 um 16 49 41

Running the preview on my Android shows the same warning.

A fix is released in [email protected]

Was this page helpful?
0 / 5 - 0 ratings