We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec23b8e commit 6d8ae88Copy full SHA for 6d8ae88
assets/js/components/chatbot/icons.js
@@ -5,7 +5,7 @@ window.icons = {
5
create({ key, size = 18, width, height, ...otherAttrs }) { // requires lib/<dom|log>.js
6
if (!key) return log.error('Option \'key\' required by icons.create()')
7
const icon = { data: this[key], attrs: { width: width || size, height: height || size, ...otherAttrs }}
8
- if (icon.data?.classify != false) icon.data.class = key
+ if (icon.data?.classify != false) icon.attrs.class = key
9
if (icon.data?.svg) { // return <svg>
10
icon.svg = dom.create.svgElem('svg', { ...icon.data.svg, ...icon.attrs })
11
;(function create(elems) {
0 commit comments