Skip to content

Commit

Permalink
1.2.1: fix bug in color picker
Browse files Browse the repository at this point in the history
  • Loading branch information
kirjavascript committed Jan 29, 2023
1 parent 8bcfc49 commit 6844cf7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## [1.2.1]
- Fix bug in color picker that stopped you entering hex values

## [1.2.0]
- Sprite Rotation
- Add zoom slider in sprites tab
Expand Down
4 changes: 2 additions & 2 deletions app/components/palettes/picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
Checkboard,
EditableInput,
} from 'react-color/lib/components/common';
import color from 'react-color/lib/helpers/color';
import { isValidHex } from 'react-color/lib/helpers/color';

export const SketchFields = ({ onChange, rgb, hsl, hex, disableAlpha }) => {
const styles = reactCSS(
Expand Down Expand Up @@ -59,7 +59,7 @@ export const SketchFields = ({ onChange, rgb, hsl, hex, disableAlpha }) => {

const handleChange = (data, e) => {
if (data.hex) {
color.isValidHex(data.hex) &&
isValidHex(data.hex) &&
onChange(
{
hex: data.hex,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.2.0",
"version": "1.2.1",
"scripts": {
"start": "electron ./static --dev"
},
Expand Down

0 comments on commit 6844cf7

Please sign in to comment.