lowercase pasted color (#594)
* lowercase pasted color * remove unused class & don't lowercase input Co-authored-by: David Luzar <luzar.david@gmail.com>
This commit is contained in:
committed by
GitHub
parent
187cfbe2d8
commit
de68561df5
@ -131,7 +131,7 @@ const ColorInput = React.forwardRef(
|
||||
className="color-picker-input"
|
||||
aria-label={label}
|
||||
onChange={e => {
|
||||
const value = e.target.value;
|
||||
const value = e.target.value.toLowerCase();
|
||||
if (value.match(colorRegex)) {
|
||||
onChange(value === "transparent" ? "transparent" : "#" + value);
|
||||
}
|
||||
|
Reference in New Issue
Block a user