这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

- server: add support for `_inc` on `real`, `double`, `numeric` and `money` (fix #3573)
- server: support special characters in JSON path query argument with bracket `[]` notation, e.g `obj['Hello World!']` (#3890) (#4482)
- console: change react ace editor theme to eclipse (close #4437)
- console: fix columns reordering for relationship tables in data browser (#4483)
- docs: add API docs for using environment variables as webhook urls in event triggers

## `v1.2.0-beta.4`
Expand Down Expand Up @@ -38,7 +40,6 @@ The order, collapsed state of columns and page size is now persisted across page
- console: redirect to /:table/browse from /:table (close #4330) (#4374)
- console: surround string type column default value with quotes (close #4371) (#4423)
- console: add undefined check to fix error (close #4444) (#4445)
- console: change react ace editor theme to eclipse (close #4437)
- docs: add One-Click Render deployment guide (close #3683) (#4209)
- server: reserved keywords in column references break parser (fix #3597) #3927
- server: fix postgres specific error message that exposed database type on invalid query parameters (#4294)
Expand Down
7 changes: 5 additions & 2 deletions console/src/components/Common/TableCommon/DragFoldTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ class DragFoldTable extends Component {
trigger: 0,
folded: props.defaultCollapsed || {},
};
this.tableRef = React.createRef();
}
mountEvents() {
if (!this.tableRef.current) return;

const headers = Array.prototype.slice.call(
document.querySelectorAll('.draggable-header')
this.tableRef.current.querySelectorAll('.draggable-header')
);

headers.forEach((header, i) => {
Expand Down Expand Up @@ -88,7 +91,7 @@ class DragFoldTable extends Component {

//render
return (
<div className="esr-table">
<div className="esr-table" ref={this.tableRef}>
<FoldableTable
{...this.props}
data={data}
Expand Down