Skip to content

fix(range): Clamp values that are out of bounds - #17623

Merged
liamdebeasi merged 3 commits into
masterfrom
fix-range-out-of-bounds
Mar 1, 2019
Merged

liamdebeasi merged 3 commits into
masterfrom
fix-range-out-of-bounds

Conversation

@liamdebeasi

Copy link
Copy Markdown
Contributor

Short description of what this resolves:

Fixes an issue where programmatically setting the value of a range (via a button click or something) was allowing out of bounds values to be emitted

Changes proposed in this pull request:

  • When emitting values, always check to make sure values are not out of bounds, and clamp if appropriate
  • Added tests to verify fix

Ionic Version:

Fixes: #17566

@ionitron-bot ionitron-bot Bot added the package: core @ionic/core package label Feb 26, 2019
@liamdebeasi
liamdebeasi marked this pull request as ready for review February 26, 2019 21:24
@liamdebeasi
liamdebeasi merged commit 5a197ca into master Mar 1, 2019
@liamdebeasi
liamdebeasi deleted the fix-range-out-of-bounds branch March 1, 2019 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: core @ionic/core package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants