authgear / authgear-server

Open source alternative to Auth0 / Firebase Auth
https://www.authgear.com
Apache License 2.0
81 stars 37 forks source link

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

Open Kuixz opened 1 week ago

Kuixz commented 1 week ago

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):

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

linear[bot] commented 1 week ago

DEV-2067 Color picker input clears itself at 5th and 7th character