mirror of
https://github.com/certimate-go/certimate.git
synced 2026-06-30 21:05:12 +08:00
fix: #1096
This commit is contained in:
parent
55829c2f34
commit
83af20bf42
@ -249,6 +249,9 @@ const BranchBlockNodeConfigExprInputBox = forwardRef<BranchBlockNodeConfigExprIn
|
||||
};
|
||||
|
||||
const handleFormChange = (_: unknown, values: ConditionFormValues) => {
|
||||
// TODO: 这里直接用参数 `values` 会丢失部分字段,引发 Issue #1096。
|
||||
// 暂时先用 `getFieldsValue()` 代替,待排查原因,疑似与 antd v6 升级有关。
|
||||
values = formInst.getFieldsValue();
|
||||
setValue(formValuesToExpr(values));
|
||||
};
|
||||
|
||||
|
||||
@ -210,6 +210,11 @@ const InternalNodeMenuButton = ({
|
||||
|
||||
return playground.config.readonlyOrDisabled ? null : (
|
||||
<Dropdown
|
||||
styles={{
|
||||
root: {
|
||||
zIndex: 10 /* 确保要比 Minimap 组件层级要高,防止被遮挡而点击不到 */,
|
||||
},
|
||||
}}
|
||||
arrow={false}
|
||||
destroyOnHidden
|
||||
menu={{
|
||||
@ -243,9 +248,6 @@ const InternalNodeMenuButton = ({
|
||||
e.domEvent.stopPropagation();
|
||||
},
|
||||
}}
|
||||
overlayStyle={{
|
||||
zIndex: 10 /* 确保要比 Minimap 组件层级要高,防止被遮挡而点击不到 */,
|
||||
}}
|
||||
trigger={["click"]}
|
||||
>
|
||||
<Button
|
||||
|
||||
Loading…
Reference in New Issue
Block a user