Unverified Commit 49705dc9 authored by Guo Y.K's avatar Guo Y.K
Browse files

ui: hide decimal fraction for int fields

parent aa2ddfab
......@@ -103,6 +103,7 @@ export const ComfyWidgets = {
},
INT(node, inputName, inputData) {
const { val, config } = getNumberDefaults(inputData, 1);
Object.assign(config, { precision: 0 })
return {
widget: node.addWidget(
"number",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment