wunderbaum 0.5.5 → 0.6.0
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/README.md +12 -22
- package/dist/wunderbaum.esm.js +32 -20
- package/dist/wunderbaum.esm.min.js +19 -19
- package/dist/wunderbaum.esm.min.js.map +1 -1
- package/dist/wunderbaum.umd.js +32 -20
- package/dist/wunderbaum.umd.min.js +22 -22
- package/dist/wunderbaum.umd.min.js.map +1 -1
- package/package.json +3 -1
- package/src/wb_ext_dnd.ts +3 -1
- package/src/wb_ext_edit.ts +6 -3
- package/src/wb_node.ts +5 -0
package/src/wb_ext_edit.ts
CHANGED
|
@@ -117,9 +117,12 @@ export class EditExtension extends WunderbaumExtension<EditOptionsType> {
|
|
|
117
117
|
this.tree.element,
|
|
118
118
|
"change", //"change input",
|
|
119
119
|
".contenteditable,input,textarea,select",
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
120
|
+
// #61: we must not debounce the `change`, event.target may be reset to null
|
|
121
|
+
// when the debounced handler is called.
|
|
122
|
+
// (e) => {
|
|
123
|
+
// this.debouncedOnChange(e);
|
|
124
|
+
// }
|
|
125
|
+
(e) => this._onChange(e)
|
|
123
126
|
);
|
|
124
127
|
}
|
|
125
128
|
|
package/src/wb_node.ts
CHANGED
|
@@ -1095,6 +1095,11 @@ export class WunderbaumNode {
|
|
|
1095
1095
|
if (!url) {
|
|
1096
1096
|
// An array or a plain object (that does NOT contain a `.url` property)
|
|
1097
1097
|
// will be treated as native Wunderbaum data
|
|
1098
|
+
if (typeof (<any>source).then === "function") {
|
|
1099
|
+
const msg = tree.logTime(`Resolve thenable ${source}`);
|
|
1100
|
+
source = await Promise.resolve(source);
|
|
1101
|
+
tree.logTimeEnd(msg);
|
|
1102
|
+
}
|
|
1098
1103
|
this._loadSourceObject(source);
|
|
1099
1104
|
elapProcess = Date.now() - start;
|
|
1100
1105
|
} else {
|