-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(color-picker): maintains correct numbering system when entering i…
…nvalid RGB value (#7327) **Related Issue:** #5978 ## Summary Entering an RGB channel value greater than 255 or less than 0 clamps the value so it doesn't become invalid. This caused the numbering system to revert to the default `latn`. It is a timing issue with `calcite-input`'s lifecycle methods and it reproduces outside of `calcite-color-picker`. Here is a demo showing that using a timeout or requesting an animation frame (kind of) fixes the issue: https://codepen.io/benesri/pen/vYQjYJK The issue isn't reproducible in `calcite-input-number`.
- Loading branch information
Showing
5 changed files
with
92 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.