diff --git a/packages/cheetah-grid/package.json b/packages/cheetah-grid/package.json index 26d127b9..231bb08a 100644 --- a/packages/cheetah-grid/package.json +++ b/packages/cheetah-grid/package.json @@ -1,6 +1,6 @@ { "name": "cheetah-grid", - "version": "1.12.0", + "version": "1.12.1", "description": "Cheetah Grid is a high performance grid engine that works on canvas", "keywords": [ "spreadsheet", diff --git a/packages/cheetah-grid/src/js/internal/icons.ts b/packages/cheetah-grid/src/js/internal/icons.ts index 7870e9db..35c01b8e 100644 --- a/packages/cheetah-grid/src/js/internal/icons.ts +++ b/packages/cheetah-grid/src/js/internal/icons.ts @@ -79,7 +79,8 @@ export function getIconProps( } const dom = doms[tagName] || (doms[tagName] = document.createElement(tagName)); - dom.classList.add(className); + // `classList.add()` cannot be used because it may be separated by spaces. + dom.className = className; dom.classList.add("cheetah-grid-icon"); document.body.appendChild(dom); try { diff --git a/packages/vue-cheetah-grid/package.json b/packages/vue-cheetah-grid/package.json index df77826a..08125ec3 100644 --- a/packages/vue-cheetah-grid/package.json +++ b/packages/vue-cheetah-grid/package.json @@ -1,6 +1,6 @@ { "name": "vue-cheetah-grid", - "version": "1.12.0", + "version": "1.12.1", "description": "Cheetah Grid for Vue.js", "main": "lib/index.js", "unpkg": "dist/vueCheetahGrid.js",