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

fix(VRangeSlider): add unique id for inputs elements #10654

Merged
merged 14 commits into from
Feb 25, 2020

Conversation

VSymonenko
Copy link
Contributor

Description

Resolve #6843

Motivation and Context

Elements ids should be unique on a page

How Has This Been Tested?

Created a unit test

Markup:

No additional configuration required

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • The PR title is no longer than 64 characters.
  • The PR is submitted to the correct branch (master for bug fixes and documentation updates, dev for new features and backwards compatible changes and next for non-backwards compatible changes).
  • My code follows the code style of this project.
  • I've added relevant changes to the documentation (applies to new features and breaking changes in core library)

Co-Authored-By: Andrew Henry <AMajesticPotatoe@gmail.com>
@TravisBuddy
Copy link

TravisBuddy commented Feb 24, 2020

Hey @VSymonenko,
Your changes look good to me!

View build log

TravisBuddy Request Identifier: e3521020-57d8-11ea-acab-ef795e2c3319

@johnleider johnleider changed the title fix(vrangeslider): add unique id for inputs elements fix(VRangeSlider): add unique id for inputs elements Feb 24, 2020
Copy link
Member

@jacekkarczmarczyk jacekkarczmarczyk left a comment

Choose a reason for hiding this comment

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

i ? 'max' : 'min'

@VSymonenko
Copy link
Contributor Author

changed logic as in the suggestion, see cfeb50b

Co-Authored-By: John Leider <john@vuetifyjs.com>
@johnleider johnleider merged commit 1244991 into vuetifyjs:master Feb 25, 2020
whoistobias pushed a commit to whoistobias/vuetify that referenced this pull request Feb 26, 2020
fixes vuetifyjs#6843

* fix(breakpoint): Passing 0 value to scrollBarWidth

* refactor(breakpoint): Passing 0 to scrollBarWidth

* fix(vrangeslider): add uniq id for inputs elements

re vuetifyjs#6843

* Update packages/vuetify/src/components/VRangeSlider/VRangeSlider.ts

Co-Authored-By: Andrew Henry <AMajesticPotatoe@gmail.com>

* test(vrangeslider): update snapshots

* refactor(vrangeslider): cleared code style

* refactor(vrangeslider): assignment ids algorithm moved to direct logic

* Update packages/vuetify/src/components/VRangeSlider/VRangeSlider.ts

Co-Authored-By: John Leider <john@vuetifyjs.com>

Co-authored-by: Andrew Henry <AMajesticPotatoe@gmail.com>
Co-authored-by: Jacek Karczmarczyk <jkarczm@gmail.com>
Co-authored-by: John Leider <john@vuetifyjs.com>
@VSymonenko
Copy link
Contributor Author

thanks all), sorry I didn't have time for requests

@lock lock bot locked as resolved and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug Report] v-slider generates duplicate element id's
5 participants