Ensure to check a widget's prototype for value property descriptor. (#203)

This fixes cases where the widget is not a plain object, but a class instance with `value` getters/setters.
This commit is contained in:
Regis Gaughan, III
2024-06-17 03:18:29 -04:00
committed by GitHub
parent a5422d6599
commit 08a06700fa

View File

@@ -610,6 +610,9 @@ app.registerExtension({
// Store the original descriptor if it exists
let originalDescriptor = Object.getOwnPropertyDescriptor(w, 'value');
if (!originalDescriptor) {
originalDescriptor = Object.getOwnPropertyDescriptor(w.constructor.prototype, 'value');
}
widgetLogic(node, w);