react-admin-color-input icon indicating copy to clipboard operation
react-admin-color-input copied to clipboard

Show color in ColorInputComponent, just like in ColorFieldComponent

Open gartner opened this issue 4 years ago • 5 comments

Add a square, showing the current color of the ColorInputComponent, just like it is shown in ColorFieldComponent.

gartner avatar Oct 19 '20 19:10 gartner

Any news on if this can be merged? it would be a great feature

Chrisgolden77 avatar Jan 22 '21 23:01 Chrisgolden77

I have published a fork of this package, called @palustris/react-admin-color-input. My package contains this change, but also a few others, ie. easier navigation using the keyboard.

gartner avatar Jan 25 '21 08:01 gartner

Thanks @gartner

Chrisgolden77 avatar Jan 25 '21 16:01 Chrisgolden77

@gartner Thank you very much for your updated version. Maybe you can add support for empty values in ColorField. Currently it crashes because of ColorDot "TypeError: Cannot read property '0' of undefined"

notz avatar Feb 02 '21 17:02 notz

@gartner Thank you very much for your updated version. Maybe you can add support for empty values in ColorField. Currently it crashes because of ColorDot "TypeError: Cannot read property '0' of undefined"

I will have a look at it. Added an issue for it here https://github.com/gartner/react-admin-color-input/issues/1

gartner avatar Feb 02 '21 20:02 gartner