palantir/blueprint

EditableCell2 doesn't rerender to empty cell on sort.

Open

#6,602 创建于 2023年12月13日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)TypeScript (20,263 star) (2,167 fork)batch import
Package: tableStatus: needs proposalType: bughelp wanted

描述

Environment

  • Package version(s): "@blueprintjs/core": "^5.5.1", "@blueprintjs/table": "^5.0.20",
  • Operating System: Windows 11
  • Browser name and version: Firefox 120.0.1 (64 bit), Chrome 120.0.6099.71 (64 bit)

Code Sandbox

demo

Steps to reproduce

  1. Create some table data with some undefined values.
  2. Create a sortable Table2 whose cells are EditableCell2.
  3. Sort columns with undefined cells. When a cell value changes from some value to undefined, it does not re-render to a blank cell.

Actual behavior

EditableCell2 does not re-render when its value changes from some value to undefined.

Expected behavior

The cell re-renders into a blank cell whenver the value changes to undefined.

Possible solution

.

贡献者指南

EditableCell2 doesn't rerender to empty cell on sort. · palantir/blueprint#6602 | Good First Issue