Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<DataTable /> rowSpan利用時の全チェック対応 #172

Merged
merged 1 commit into from
Sep 8, 2020

Conversation

youchann
Copy link
Contributor

@youchann youchann commented Sep 7, 2020

rowSpanを設定した<DataTable />で全チェックを行うと、結合したセル分のIDが重複する。ので対応した。

@youchann youchann added the bug Something isn't working label Sep 7, 2020
@youchann youchann self-assigned this Sep 7, 2020
Comment on lines +186 to +188
const [selectedRows, setSelectedRows] = React.useState<Set<number>>(
new Set([]),
);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setで管理したので多分少し早くなる。

@youchann
Copy link
Contributor Author

youchann commented Sep 7, 2020

デバッグ方法はブランチ環境および本番環境でDataTablewith Row Spanで全チェックを行う

Copy link
Contributor

@maktak1995 maktak1995 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setで管理することでidの重複を起こらないようにしたんですね。
動作も問題ありませんでした。
LGTMです!

@youchann youchann merged commit 179d602 into master Sep 8, 2020
@youchann youchann deleted the tweak-datatable-toggle-all-check branch September 8, 2020 01:04
youchann added a commit that referenced this pull request Sep 18, 2020
This reverts commit 179d602.
youchann added a commit that referenced this pull request Sep 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants