ywana-core8 0.0.419 → 0.0.420
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/dist/index.cjs +1 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +1 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +1 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/ContentEditor.js +0 -1
- package/src/domain/ContentEditor.test.js +0 -1
- package/src/html/tokenfield.js +1 -1
package/package.json
CHANGED
@@ -236,7 +236,6 @@ export const StringEditor = ({ field, value = '', onChange, content, outlined })
|
|
236
236
|
const { id, format, label, options, editable = true, predictive = false, multivalue = false, Editor } = field
|
237
237
|
|
238
238
|
function change(id, value) {
|
239
|
-
console.log(id,value)
|
240
239
|
if (onChange) onChange(id, value)
|
241
240
|
}
|
242
241
|
|
package/src/html/tokenfield.js
CHANGED
@@ -24,7 +24,7 @@ export const TokenField = ({ id, label, tokens = [], readOnly, options, onChange
|
|
24
24
|
}
|
25
25
|
|
26
26
|
function changeDropDown(fid, value) {
|
27
|
-
const next = tokens.concat(value)
|
27
|
+
const next = Array.isArray(tokens) ? tokens.concat(value) : [value]
|
28
28
|
if (onChange) onChange(id, next)
|
29
29
|
setValue('')
|
30
30
|
}
|