Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VaCounter validation #2113

Merged
merged 11 commits into from
Sep 23, 2022
Merged

VaCounter validation #2113

merged 11 commits into from
Sep 23, 2022

Conversation

damirJa
Copy link
Contributor

@damirJa damirJa commented Jul 19, 2022

Fix #1976

Description

  • quick fix input auto width
  • add counter validation

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Improvement/refactoring (non-breaking change that doesn't add any feature but make things better)

packages/ui/src/components/va-counter/validateCounter.ts Outdated Show resolved Hide resolved
packages/ui/src/components/va-counter/validateCounter.ts Outdated Show resolved Hide resolved
packages/ui/src/components/va-counter/validateCounter.ts Outdated Show resolved Hide resolved
packages/ui/src/components/va-slider/validateSlider.ts Outdated Show resolved Hide resolved
@@ -294,6 +295,8 @@ export default defineComponent({

const marginComputed = computed(() => safeCSSLength(props.margins))

validateCounter(props.modelValue, props.step, props.min, props.max)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This checks the props only once. But props can change dynamically

@m0ksem m0ksem added this to the 1.4.8 (current) milestone Jul 21, 2022
@m0ksem m0ksem marked this pull request as draft July 28, 2022 18:06
@damirJa damirJa force-pushed the feat/va-counter-validation branch from 1512722 to 07c5797 Compare July 29, 2022 11:50
damirJa and others added 7 commits July 29, 2022 17:00
Co-authored-by: Oleg <64714442+aluarius@users.noreply.github.com>
Co-authored-by: Vitaly <vitaly.raichev@epicmax.co>
Co-authored-by: Vitaly <vitaly.raichev@epicmax.co>
Co-authored-by: Vitaly <vitaly.raichev@epicmax.co>
Co-authored-by: Vitaly <vitaly.raichev@epicmax.co>
@damirJa damirJa marked this pull request as ready for review July 29, 2022 12:09
@damirJa damirJa requested a review from RVitaly1978 July 29, 2022 12:09
@m0ksem m0ksem assigned RVitaly1978 and unassigned damirJa Aug 27, 2022
@RVitaly1978 RVitaly1978 merged commit 0e98dee into develop Sep 23, 2022
@RVitaly1978 RVitaly1978 deleted the feat/va-counter-validation branch September 23, 2022 07:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Validation min, max and step props of VaCounter
5 participants