-
Notifications
You must be signed in to change notification settings - Fork 327
Commit
- Loading branch information
There are no files selected for viewing
2 comments
on commit 5687e51
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know it's probably bad on my behalf but I was relying on the numbers of the DK elements that were created to run some custom css and JS on them. Keeping the same cache ID would have been helpful. Hopefully I can make a container around the entire select box and then reference the children elements from there, however I don't think that's as tidy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it's of any help, any classes you add to the select will also be added to the Dropkick element. So instead of adding a container, you can just add a class (of course the Dropkick element will also have a dk-select
or dk-multiselect
class).
If you're adding the selects programmatically, you can keep a ticker and for every select add a class of 'select-' + ticker++
👍 for returning
this