We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c3d1e61 + ce31edc commit 93c1600Copy full SHA for 93c1600
packages/node_modules/@node-red/nodes/core/function/10-function.html
@@ -451,11 +451,13 @@
451
tabs.activateTab("func-tab-body");
452
453
$( "#node-input-outputs" ).spinner({
454
- min:0,
+ min: 0,
455
+ max: 500,
456
change: function(event, ui) {
- var value = this.value;
457
- if (!value.match(/^\d+$/)) { value = 1; }
458
- else if (value < this.min) { value = this.min; }
+ var value = parseInt(this.value);
+ value = isNaN(value) ? 1 : value;
459
+ value = Math.max(value, parseInt($(this).attr("aria-valuemin")));
460
+ value = Math.min(value, parseInt($(this).attr("aria-valuemax")));
461
if (value !== this.value) { $(this).spinner("value", value); }
462
}
463
});
0 commit comments