Browse Source

ui: hide decimal fraction for int fields

pull/200/head
Guo Y.K 2 years ago
parent
commit
49705dc947
No known key found for this signature in database
GPG Key ID: 315A5D46A979A359
  1. 1
      web/scripts/widgets.js

1
web/scripts/widgets.js

@ -103,6 +103,7 @@ export const ComfyWidgets = {
}, },
INT(node, inputName, inputData) { INT(node, inputName, inputData) {
const { val, config } = getNumberDefaults(inputData, 1); const { val, config } = getNumberDefaults(inputData, 1);
Object.assign(config, { precision: 0 })
return { return {
widget: node.addWidget( widget: node.addWidget(
"number", "number",

Loading…
Cancel
Save