diff --git a/src/components/ContextMenu/InputHelperModal.js b/src/components/ContextMenu/InputHelperModal.js index c925e46c..e9b07c03 100644 --- a/src/components/ContextMenu/InputHelperModal.js +++ b/src/components/ContextMenu/InputHelperModal.js @@ -607,11 +607,17 @@ const enhance = compose( isBlink: false }), { - onColorClick: () => ({ target: { dataset: { fg } } }) => ({ + onColorClick: () => ({ + target: { + dataset: { fg } + } + }) => ({ fg: parseInt(fg, 10) }), onColorContextMenu: ({ bg }) => event => { - const { target: { dataset } } = event; + const { + target: { dataset } + } = event; event.preventDefault(); event.stopPropagation(); return { @@ -676,6 +682,7 @@ export const InputHelperModal = ({ }) => (