Skip to content

Commit aa85b3c

Browse files
committed
Ensure no trailing space is added to className
1 parent 745f0f3 commit aa85b3c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

components/dash-core-components/src/components/Input.react.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,14 @@ export default class Input extends PureComponent {
6161
const valprops =
6262
this.props.type === 'number' ? {} : {value: this.state.value};
6363
const {loading_state} = this.props;
64+
let {className} = this.props;
65+
className = 'dash-input' + (className ? ` ${className}` : '');
6466
return (
6567
<input
6668
data-dash-is-loading={
6769
(loading_state && loading_state.is_loading) || undefined
6870
}
69-
className={['dash-input', this.props.className].join(' ')}
71+
className={className}
7072
ref={this.input}
7173
onBlur={this.onBlur}
7274
onChange={this.onChange}

0 commit comments

Comments
 (0)