ywana-core8 0.0.475 → 0.0.476
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 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +1 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/textfield.test.js +2 -1
- package/src/html/tokenfield.js +1 -1
package/package.json
CHANGED
@@ -25,10 +25,11 @@ const TextFieldTest = (prop) => {
|
|
25
25
|
{ label: "NO", value: "false" },
|
26
26
|
]
|
27
27
|
|
28
|
+
console.log(form)
|
28
29
|
return (
|
29
30
|
<>
|
30
31
|
<DropDown id="b1" label="Boolean1" onChange={change} options={options2} value={form.b1} />
|
31
|
-
<TokenField id="token1" label="Tokens" onChange={change}
|
32
|
+
<TokenField id="token1" label="Tokens" onChange={change} />
|
32
33
|
<TextField id="name" label="Name" value={form.name} onChange={change} />
|
33
34
|
<DropDown id="gender1" label="Dropdown 1" value={form.gender1} onChange={change} options={options} predictive={false}/>
|
34
35
|
<DropDown id="gender2" label="Dropdown 2" value={form.gender2} onChange={change} options={options} predictive={true}/>
|
package/src/html/tokenfield.js
CHANGED
@@ -33,7 +33,7 @@ export const TokenField = ({ id, label, tokens = [], readOnly, options, onChange
|
|
33
33
|
event.preventDefault()
|
34
34
|
event.stopPropagation()
|
35
35
|
const token = event.target.value
|
36
|
-
const next = tokens.concat(token)
|
36
|
+
const next = tokens.concat(token.trim())
|
37
37
|
if (onChange) onChange(id, next)
|
38
38
|
setValue('')
|
39
39
|
}
|