ywana-core8 0.0.138 → 0.0.139

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.138",
3
+ "version": "0.0.139",
4
4
  "description": "ywana-core8",
5
5
  "author": "Ernesto Roldan Garcia",
6
6
  "license": "MIT",
@@ -244,7 +244,7 @@ export const StringEditor = ({ field, value = '', onChange, content, outlined })
244
244
  <div className='field-editor string-editor'>
245
245
  {
246
246
  format === FORMATS.DATE ? <TextField outlined={outlined} id={id} type="date" label={label} value={value} onChange={change} readOnly={!editable} /> :
247
- options ? <DropDown outlined={outlined} id={id} label={label} value={value} onChange={change} options={buildOptions()} readOnly={!editable} /> :
247
+ options ? <DropDown outlined={outlined} id={id} label={label} value={value} onChange={change} options={buildOptions()} readOnly={!editable} canFilter={true}/> :
248
248
  <TextField outlined={outlined} id={id} label={label} value={value} onChange={change} readOnly={!editable} />
249
249
  }
250
250
  </div>
@@ -59,7 +59,7 @@ export const DropDown = (props) => {
59
59
  const { id, options = [], value, onChange, canFilter = false } = props
60
60
  const [open, setOpen] = useState(false)
61
61
  const [label, setLabel] = useState()
62
- const [filter, srtFilter] = useState()
62
+ const [filter, setFilter] = useState()
63
63
 
64
64
  useEffect(() => {
65
65
  if (Array.isArray(options)) {
@@ -69,6 +69,7 @@ export const DropDown = (props) => {
69
69
  }, [value])
70
70
 
71
71
  function change(id, value) {
72
+ console.log('dropdown change > canFilter:', canFilter, id, value)
72
73
  if (canFilter) {
73
74
  setFilter(value)
74
75
  } else {