ywana-core8 0.0.152 → 0.0.153

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.152",
3
+ "version": "0.0.153",
4
4
  "description": "ywana-core8",
5
5
  "author": "Ernesto Roldan Garcia",
6
6
  "license": "MIT",
@@ -253,7 +253,7 @@ const TableEditor = (props) => {
253
253
  }
254
254
 
255
255
  async function remove(id) {
256
- const confirm = site.confirm("Are you sure ?")
256
+ const confirm = await site.confirm("Are you sure ?")
257
257
  if (confirm) {
258
258
  await pageContext.remove(id)
259
259
  pageContext.clear()
@@ -98,7 +98,8 @@ export const DropDown = (props) => {
98
98
  function renderOptions() {
99
99
  const canShow = open == true && Array.isArray(options)
100
100
  if (canShow) {
101
- const filterActive = canFilter && label && label.length > 0
101
+ const filterActive = canFilter === true && label && label.length > 0
102
+ console.log('Dropdown filterActive', filterActive, canFilter, label )
102
103
  const items = filterActive ? options.filter(option => option.label.toUpperCase().indexOf(label.toUpperCase()) >= 0) : options
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>