mirror of
https://github.com/jags111/efficiency-nodes-comfyui.git
synced 2026-03-21 21:22:13 -03:00
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:
committed by
GitHub
parent
a5422d6599
commit
08a06700fa
@@ -610,6 +610,9 @@ app.registerExtension({
|
|||||||
|
|
||||||
// Store the original descriptor if it exists
|
// Store the original descriptor if it exists
|
||||||
let originalDescriptor = Object.getOwnPropertyDescriptor(w, 'value');
|
let originalDescriptor = Object.getOwnPropertyDescriptor(w, 'value');
|
||||||
|
if (!originalDescriptor) {
|
||||||
|
originalDescriptor = Object.getOwnPropertyDescriptor(w.constructor.prototype, 'value');
|
||||||
|
}
|
||||||
|
|
||||||
widgetLogic(node, w);
|
widgetLogic(node, w);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user