Skip to content

Commit 756e30b

Browse files
author
Sibtain Ali
committed
feat(#67): More bugfixes
1 parent d692e36 commit 756e30b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,9 @@ export default class ModalSelector extends React.Component {
356356
if (this.props.children) {
357357
return this.props.children;
358358
}
359-
let initSelectStyle = this.state.selected.find(this.state.initValue)
359+
let initSelectStyle = this.state.selected.find(
360+
v => v === this.state.initValue
361+
)
360362
? [styles.initValueTextStyle, this.props.initValueTextStyle]
361363
: [styles.selectTextStyle, this.props.selectTextStyle];
362364
return (

0 commit comments

Comments
 (0)