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

Color picker input clears itself at 5th and 7th character #4743

Open
Kuixz opened this issue Sep 13, 2024 · 1 comment
Open

Color picker input clears itself at 5th and 7th character #4743

Kuixz opened this issue Sep 13, 2024 · 1 comment
Labels
bug/trivial < 20% users will be affected by the issue, fix optionally

Comments

@Kuixz
Copy link
Contributor

Kuixz commented Sep 13, 2024

Describe the bug
Color picker input only allows input of 4 characters following # (e.g. #abcd), inputting a 5th character will erase the contents of the input.

Authgear Version
main branch 13/09/2024

To Reproduce
Steps to reproduce the behavior:

  1. Go to project portal -> Branding -> Design
  2. Click on any color picker e.g. Background
  3. Type the following string one character at a time. "#aaaaa"
  4. Input box is empty.
  5. Paste the following string. "#aaaaaa"
  6. Type the following string one character at a time. "a"
  7. Input box is empty.

Expected behavior
Since color string can be up to 8 characters long, color picker input should accept up to 8 characters before clearing. Or maybe don't clear at all, just refuse to add more characters.

Client Env (if applicable, please complete the following information):

  • Device: MacBook Pro 14in 2021
  • OS: macOS Ventura 13.6.4
  • Browser: Brave 1.68.137

This bug will affect any user who try to input custom color in their branding / design.

@Kuixz Kuixz added the bug/trivial < 20% users will be affected by the issue, fix optionally label Sep 13, 2024
Copy link

linear bot commented Sep 13, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/trivial < 20% users will be affected by the issue, fix optionally
Projects
None yet
Development

No branches or pull requests

1 participant