Skip to content

Commit 6844cf7

Browse files
committed
1.2.1: fix bug in color picker
1 parent 8bcfc49 commit 6844cf7

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## [1.2.1]
4+
- Fix bug in color picker that stopped you entering hex values
5+
36
## [1.2.0]
47
- Sprite Rotation
58
- Add zoom slider in sprites tab

app/components/palettes/picker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
Checkboard,
1010
EditableInput,
1111
} from 'react-color/lib/components/common';
12-
import color from 'react-color/lib/helpers/color';
12+
import { isValidHex } from 'react-color/lib/helpers/color';
1313

1414
export const SketchFields = ({ onChange, rgb, hsl, hex, disableAlpha }) => {
1515
const styles = reactCSS(
@@ -59,7 +59,7 @@ export const SketchFields = ({ onChange, rgb, hsl, hex, disableAlpha }) => {
5959

6060
const handleChange = (data, e) => {
6161
if (data.hex) {
62-
color.isValidHex(data.hex) &&
62+
isValidHex(data.hex) &&
6363
onChange(
6464
{
6565
hex: data.hex,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.2.0",
2+
"version": "1.2.1",
33
"scripts": {
44
"start": "electron ./static --dev"
55
},

0 commit comments

Comments
 (0)