清理透明度输入的颜色草稿
透明度修改提交前显式清除颜色草稿\n避免无效更新后残留未提交颜色
This commit is contained in:
+4
-3
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user