ywana-core8 0.0.240 → 0.0.241

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": "ywana-core8",
3
- "version": "0.0.240",
3
+ "version": "0.0.241",
4
4
  "description": "ywana-core8",
5
5
  "author": "Ernesto Roldan Garcia",
6
6
  "license": "MIT",
@@ -29,7 +29,7 @@ export const TextField = (props) => {
29
29
  }
30
30
 
31
31
  function focus() {
32
- if (site) {
32
+ if (site && site.changeFocus) {
33
33
  site.changeFocus({
34
34
  lose: () => {
35
35
  // DO NOTHING
@@ -77,11 +77,12 @@ export const TextField = (props) => {
77
77
  event.stopPropagation()
78
78
  event.preventDefault()
79
79
  const value = event.target.value
80
+ console.log(value)
80
81
  if (onChange) onChange(id, value)
81
82
  }
82
83
 
83
84
  function focus() {
84
- if (site) {
85
+ if (site && site.changeFocus) {
85
86
  site.changeFocus({
86
87
  lose: () => {
87
88
  // DO NOTHING
@@ -13,7 +13,7 @@ const TextFieldTest = (prop) => {
13
13
 
14
14
  return (
15
15
  <>
16
- <TextArea id="text1" label="Text 1" value="Lorem ipsum dolor sit amet..." onChange={change}/>
16
+ <TextArea id="text1" label="Text 1" value={form.text1} onChange={change}/>
17
17
  <TextField id="date1" type="DATE" label="Date" value={form.date1} onChange={change}/>
18
18
  <DropDown id="gender1" label="Gender" value={form.gender1} onChange={change} options={[ {label: "Male", value: "M"}, { label: "Female", value: "F" }]} />
19
19
  </>