gd-bs 6.6.37 → 6.6.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gd-bs",
3
- "version": "6.6.37",
3
+ "version": "6.6.38",
4
4
  "description": "Bootstrap JavaScript, TypeScript and Web Components library.",
5
5
  "main": "build/index.js",
6
6
  "typings": "src/index.d.ts",
@@ -49,9 +49,9 @@ export const configureParent = (component: Element, parent: Element): Element =>
49
49
  return el;
50
50
  }
51
51
 
52
- export const setClassNames = (el: HTMLElement, className = "") => {
53
- // Ensure the element exists
54
- if (el) {
52
+ export const setClassNames = (el: HTMLElement, className) => {
53
+ // Ensure the element and class name exists exists
54
+ if (el && className) {
55
55
  // Set the class names
56
56
  let classNames = className.split(' ');
57
57
  for (let i = 0; i < classNames.length; i++) {