Skip to content

Commit

Permalink
Added fallback values for borderWidth, borderStyle, and borderColor (e…
Browse files Browse the repository at this point in the history
  • Loading branch information
cqliu1 authored May 4, 2018
1 parent 5245fb9 commit 7aea642
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const styles = ['solid', 'dotted', 'dashed', 'double', 'groove', 'ridge', 'inset

export const BorderForm = ({ className, value, radius, onChange, colors }) => {
const border = value || '';
const [borderWidth, borderStyle, borderColor] = border.split(' ');
const [borderWidth = '', borderStyle = '', borderColor = ''] = border.split(' ');
const borderWidthVal = borderWidth ? borderWidth.replace('px', '') : '';
const radiusVal = radius ? radius.replace('px', '') : '';

Expand Down

0 comments on commit 7aea642

Please sign in to comment.