清理透明度输入的颜色草稿

透明度修改提交前显式清除颜色草稿\n避免无效更新后残留未提交颜色
This commit is contained in:
2026-09-03 11:51:58 +08:00
parent f79ccccf44
commit e616e2c899
@@ -190,12 +190,13 @@ export function TextPanel({
max={255}
step={1}
value={Math.round(rgba.a * 255)}
onChange={(event) =>
onChange={(event) => {
setColorDraft(null);
onChange({
...component,
color: [rgba.r, rgba.g, rgba.b, Number(event.target.value)],
})
}
});
}}
/>
</div>
) : null}