ywana-core8 0.0.141 → 0.0.142

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.141",
3
+ "version": "0.0.142",
4
4
  "description": "ywana-core8",
5
5
  "author": "Ernesto Roldan Garcia",
6
6
  "license": "MIT",
@@ -99,7 +99,8 @@ export const DropDown = (props) => {
99
99
  const canShow = open == true && Array.isArray(options)
100
100
  if (canShow) {
101
101
  const filterActive = canFilter && label && label.length > 0
102
- const items = filterActive ? options.filter(option => canFilter === false || label.toUpperCase().indexOf(option.label.toUpperCase()) >= 0) : options
102
+ const items = filterActive ? options.filter(option => label.toUpperCase().indexOf(option.label.toUpperCase()) >= 0) : options
103
+ console.log('filterActive: ',filterActive, label, items.length)
103
104
  const lis = items.map(option => <li key={option.value} value={option.value}>{option.label}</li>)
104
105
  return <menu><ul onClick={select}>{lis}</ul></menu>
105
106
  } else {