Skip to content

Commit

Permalink
Merge pull request #174 from back4app/fix_data_browser_filter_style
Browse files Browse the repository at this point in the history
fix: Data browser filter style
  • Loading branch information
paivaric committed Jul 1, 2019
2 parents cf8f5e8 + 9eec004 commit c38826f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/ChromeDropdown/ChromeDropdown.react.js
Expand Up @@ -53,7 +53,8 @@ export default class ChromeDropdown extends React.Component {
}

render() {
let widthStyle = { width: `${parseFloat(this.props.width)}%` || 140 };
const width = this.props.width || 140;
let widthStyle = {width: width.toString().endsWith('%') ? width : parseFloat(width)};
let styles = this.styles;
let color = this.props.color || 'purple';
let isMultipleOptions = this.props.options.length > 1
Expand Down

0 comments on commit c38826f

Please sign in to comment.