wrapper remains camelCase even with option camelCase = false
DolphRoger opened this issue · 0 comments
DolphRoger commented
First - thank you very much for this insanely well written plugin. I am very satisfied.
One issue I encountered when renaming the "pluginName" to a camelCase name, like "mySelect", all css sub-classes are well transformed to "my-select", with exception of the wrapper. So one must rename the selector in the some selectors in the css (.selectric, .selectric .label, etc.) still to ".mySelect", even when ".my-select" is wanted according to the option customClass.camelCase = false.
That's an easy fix.
Change line 347 from:
classesObj.prefix = customClass.prefix;
To:
classesObj.prefix = customClass.camelCase ? customClass.prefix : _this.utils.toDash(customClass.prefix);