Skip to content

Commit 27c861c

Browse files
Allow dash in component instance id like bind__troika-text (#822)
1 parent d80d451 commit 27c861c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/components/AddComponent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default class AddComponent extends React.Component {
3232
id = id
3333
.trim()
3434
.toLowerCase()
35-
.replace(/[^a-z0-9]/g, '');
35+
.replace(/[^a-z0-9-]/g, '');
3636
// With the transform, id could be empty string, so we need to check again.
3737
}
3838
if (id) {

0 commit comments

Comments
 (0)