Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is a period in id. It interferes with the Bootstrap.js. #197

Closed
taxusorg opened this issue Oct 22, 2017 · 2 comments
Closed

There is a period in id. It interferes with the Bootstrap.js. #197

taxusorg opened this issue Oct 22, 2017 · 2 comments
Assignees
Labels
Milestone

Comments

@taxusorg
Copy link

uniqid('id-', true) will get an ID example 'id-59ec2db4b69ed3.25044118'.
There is a problem like "$('#item-id-59ec2db4b69ed3.25044118');" jQuery will finding element id='item-id-59ec2db4b69ed3' and class='25044118'
If id is too slow, use md5 and uniqid 'id-'.md5(uniqid(null, true))

@dustingraham
Copy link
Collaborator

Darn, good point. This was changed with #170 but we'll figure out a better solution.

@dustingraham dustingraham added this to the v1.7.2 milestone Oct 22, 2017
@dustingraham dustingraham self-assigned this Oct 22, 2017
@dustingraham
Copy link
Collaborator

Fixed with latest commit. Thanks @taxusorg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants