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

The value prop on <SlColorPicker> doesn't work in React #602

Closed
Kimi-Gao opened this issue Dec 6, 2021 · 1 comment
Closed

The value prop on <SlColorPicker> doesn't work in React #602

Kimi-Gao opened this issue Dec 6, 2021 · 1 comment
Assignees
Labels
bug Things that aren't working right in the library.

Comments

@Kimi-Gao
Copy link

Kimi-Gao commented Dec 6, 2021

Describe the bug

value prop on SlColorPicker does not work

To Reproduce

Steps to reproduce the behavior:

<SlColorPicker format="hex" value="#4a90e2" />

it always uses default value "#fff" when dom has been mounted, and will changes to "#4a90e2" if updates dom.

Demo

https://codepen.io/muwenzi/pen/bGoEwVK

Screenshots

image

Browser / OS

  • OS: [macOS 11.6]
  • Browser [Chrome]
  • Browser version [Version 96.0.4664.55 (Official Build) (x86_64)]
@Kimi-Gao Kimi-Gao added the bug Things that aren't working right in the library. label Dec 6, 2021
@claviska claviska changed the title value prop on SlColorPicker does not work The value prop on <SlColorPicker> doesn't work in React Dec 6, 2021
@claviska
Copy link
Member

claviska commented Dec 7, 2021

Thanks for reporting this. I was able to replicate it and solve it in 68bb155. This patch will be available in 2.0.0-beta.62.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Things that aren't working right in the library.
Projects
None yet
Development

No branches or pull requests

2 participants