mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
fix color input when value is invalid
This commit is contained in:
parent
c2f9ad410d
commit
f44c2fe0af
1 changed files with 2 additions and 1 deletions
|
|
@ -11,7 +11,8 @@ const ColorPicker = require('./ColorPicker');
|
|||
const styles = require('./styles');
|
||||
|
||||
const parseColor = (value) => {
|
||||
return AColorPicker.parseColor(value, 'hexcss4');
|
||||
const color = AColorPicker.parseColor(value, 'hexcss4');
|
||||
return typeof color === 'string' ? color : '#ffffffff';
|
||||
};
|
||||
|
||||
const ColorInput = ({ className, value, dataset, onChange, ...props }) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue