apache / apache/incubator-seata

多节点切换编辑右侧详情表单数据时,表单数据容易被覆盖的问题

Open
#2,882 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
26k
Forks
8.8k
Avg merge
1d 8h
Merged PRs (30d)
4

Description

## 定位

前端问题

这里提的是 saga/seata-saga-statemachine-designer 目录下的前端问题。

## 版本

3.1.3

## 环境

系统:
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36

浏览器:
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36

React:
http://g.alicdn.com/code/lib/react/16.8.6/umd/react.production.min.js

## 重现链接

定位:Flow

无重现链接,以 GIF 代替,可 100% 重现。

![82bd9482-9b07-403f-84c1-e4951b44f4fd](https://user-images.githubusercontent.com/49681036/87311449-d1bbf380-c551-11ea-98d3-df11e495f790.gif)

## 重现步骤

1. 点击一个节点A,编辑右侧详情表单
2. 点击另一个节点B,(此时右侧表单数据并没有根据节点的切换而改变),点击右侧详情表单进入编辑状态,但不编辑
3. 点击画板空白处(此时,节点B的表单数据变成和节点A一样,被覆盖改变了)

## 期望的结果是什么

1. 右侧表单数据能根据节点的切换,而更新成与节点相对应的数据
2. **后点击编辑的节点数据** 不会被 **先前点击编辑的节点数据** 所覆盖

## 实际的结果是什么

1. 右侧表单数据 **无法** 根据节点的切换,而更新成与节点相对应的数据
2. **后点击编辑的节点数据** 会被 **先前点击编辑的节点数据** 所覆盖

Contributor guide

Open the contributing guide

Research direction

Start in saga/seata-saga-statemachine-designer and inspect the Flow view and right-side detail form while following the three reproduction steps in the issue; the attached GIF shows the behavior. Done means switching nodes refreshes the form for the selected node and clicking the canvas no longer lets earlier node data overwrite later node data.

Written by the indexing model from the issue text.

Assessment

Tech stack
react
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.