ProgressNS / nativescript-ui-feedback

This repository is used for customer feedback regarding Telerik UI for NativeScript. The issues system here is used by customers who want to submit their feature requests or vote for existing ones.
Other
115 stars 21 forks source link

RadDataForm seems to ignore maximum value of the Stepper editor #1088

Open DevPlus31 opened 5 years ago

DevPlus31 commented 5 years ago

The Stepper seems to ignore the maximum value on NS Vue. the issue is only on iOS.

Please, provide the details below:

The Stepper seems to ignore the maximum value on NS Vue. the issue is only on iOS.

Tell us about the problem

Please, ensure your title is less than 63 characters long and starts with a capital letter. RadDataForm seems to ignore maximum value of the Stepper editor

Which platform(s) does your issue occur on?

iOS/Android/Both (if applicable tell us the specific version of the platform) iOS only (Android working fine)

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

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

Stepper surpass the maximum value.

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

You can try with nativescript-ui-samples-vue DataForm samples click on Editors and Editors using markup.

DevPlus31 commented 5 years ago

Updated CLI to 5.3.2 I still get the same effect.

Pandishpan commented 5 years ago

I have the same issue using Angular.

If I set the minimum equal to 0 or I don't set the minimum, the maximum value is ignored.

Maximum is ignored here:

`

`

Maximum is set here: <TKPropertyEditorParams tKEditorParams minimum="1" maximum="50"></TKPropertyEditorParams>

tgpetrov commented 5 years ago

@DevPlus31 actually these 2 examples in nativescript-ui-samples-vue illustrate 2 separate issues: 1) the Editors example is wrong - it tries to set limits for the stepper editor through json metadata using maximum and minimum - while the documented acceptable values are max and min. 2) the Editors using markup example illustrates the issue that is also observed by @Pandishpan that when minimum is not present or when its value is 0, then the value of maximum is ignored.

DevPlus31 commented 5 years ago

Since I don't use Angular I never saw the angular docs.
There's some confusion because As I can see on Vue docs https://docs.nativescript.org/vuejs/ns-ui/DataForm/dataform-editors The editorParams is using minimum and maximum value instead of max and min 'editorParams': { 'minimum': 0, 'maximum': 20, 'step': 2, }

I think it's better to make iOS accept both values min or minimum as it's on Android.