Skip to content

Commit 55290f6

Browse files
authored
Merge pull request #90 from 0mkara/num_val
Coerce NaN types to strings
2 parents 9d8fa2d + b7f4a81 commit 55290f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/TreeNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ class TreeNode extends React.Component {
195195
} = this.props;
196196

197197
const clickable = onClick.toString() !== TreeNode.defaultProps.onClick.toString();
198-
const inputId = `${treeId}-${value.split(' ').join('_')}`;
198+
const inputId = `${treeId}-${Number.isNaN(value) ? value : value.split(' ').join('_')}`;
199199

200200
const render = [(
201201
<label key={0} htmlFor={inputId}>

0 commit comments

Comments
 (0)