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 - modes (Lock only one mode) #77

Closed
Nihilop opened this issue Jun 11, 2021 · 0 comments · Fixed by #78
Closed

Color picker - modes (Lock only one mode) #77

Nihilop opened this issue Jun 11, 2021 · 0 comments · Fixed by #78

Comments

@Nihilop
Copy link

Nihilop commented Jun 11, 2021

Environment Info

  • Naive UI version: 2.11.5
  • Browser Info: Electron (Chromium)
  • System Info: Windows 10

Reproduction link

https://codesandbox.io/embed/restless-waterfall-20ggg

Steps to reproduce

just add : :modes="['hex']" to color picker component.
Ref : https://www.naiveui.com/en-US/dark/components/color-picker

What is expected?

i wanna lock the color picker to hexa only

What is actually happening?

when i force hex mode only, RGBA still in the selection. For my case, RGBA is the default mode.

Thanks :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant