Skip to content

Commit

Permalink
unique-id: Prefix return value with em- to avoid invalid selectors …
Browse files Browse the repository at this point in the history
…starting with numeric digits
  • Loading branch information
Turbo87 committed Jun 14, 2022
1 parent ffe7d76 commit 6e49d9f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import { createConstRef, Reference } from '@glimmer/reference';
import { internalHelper } from './internal-helper';

export default internalHelper((): Reference<string> => {
return createConstRef(uniqueId(), 'unique-id');
return createConstRef(`em-${uniqueId()}`, 'unique-id');
});

// From https://gist.github.com/selfish/fef2c0ba6cdfe07af76e64cecd74888b
Expand Down

0 comments on commit 6e49d9f

Please sign in to comment.