Skip to content

Commit 8683594

Browse files
authored
w3org validation of input and label ids
1 parent fde334e commit 8683594

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
@@ -148,7 +148,7 @@ class TreeNode extends React.Component {
148148
treeId,
149149
value,
150150
} = this.props;
151-
const inputId = `${treeId}-${value}`;
151+
const inputId = `${treeId}-${value.split(' ').join('_')}`;
152152
const nodeClass = classNames({
153153
'rct-node': true,
154154
'rct-node-parent': this.hasChildren(),

0 commit comments

Comments
 (0)