Skip to content

Commit 38632ed

Browse files
committed
BUGFIX: Prevent error when setting alpha value
The hsl and alpha values were not properly forwarded to the color library methods. Resolves: #56
1 parent f4494d9 commit 38632ed

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Resources/Private/Scripts/ColorPickerEditor/src/NeosColorPicker/Alpha.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export class Alpha extends (PureComponent || Component) {
1616
}
1717

1818
handleChange = e => {
19-
const change = calculateChange(e, null, this.props, this.container);
19+
const change = calculateChange(e, this.props.hsl, null, this.props.rgb.a, this.container);
2020
if (change && typeof this.props.onChange === 'function') {
2121
this.props.onChange(change, e);
2222
}

Resources/Private/Scripts/ColorPickerEditor/src/NeosColorPicker/Hue.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export class Hue extends (PureComponent || Component) {
1414
}
1515

1616
handleChange = e => {
17-
const change = calculateChange(e, null, this.props, this.container);
17+
const change = calculateChange(e, null, this.props.hsl, this.container);
1818
if (change && typeof this.props.onChange === 'function') {
1919
this.props.onChange(change, e);
2020
}

Resources/Public/ColorPickerEditor/Plugin.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Resources/Public/ColorPickerEditor/Plugin.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)