Skip to content

Commit

Permalink
Merge pull request #2015 from nickmelnikov82/fix-factory-empty-props
Browse files Browse the repository at this point in the history
Fix empty headerOpEdges.
  • Loading branch information
alexcjohnson authored Apr 19, 2022
2 parents 693b62c + 9100c7c commit 5ca0339
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ This project adheres to [Semantic Versioning](https://semver.org/).

## [Unreleased]

### Fixed

- [#2015](https://github.com/plotly/dash/pull/2015) Fix bug [#1854](https://github.com/plotly/dash/issues/1854) in which the combination of row_selectable="single or multi" and filter_action="native" caused the JS error.

### Changed

- [#2016](https://github.com/plotly/dash/pull/2016) Drop the 375px width from default percy_snapshot calls, keep only 1280px
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ export default class EdgeFactory {
const iNext = 0;
const iTarget = hTarget.rows - 1;

if (!isFinite(iTarget)) {
return;
}

R.forEach(
j =>
!EdgeFactory.hasPrecedence(
Expand Down
16 changes: 16 additions & 0 deletions components/dash-table/tests/selenium/test_basic_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,3 +426,19 @@ def test_tbst023_sorted_table_delete_multiple_cells_while_selected(test, props):
assert target.cell(row, col).get_text() == ""

assert test.get_log_errors() == []


def test_tbst024_row_selectable_filter_action(test):
app = dash.Dash(__name__)

app.layout = DataTable(
id="test-table",
row_selectable="single",
filter_action="native",
)

test.start_server(app)

test.wait_for_element("#test-table")

assert test.get_log_errors() == []

0 comments on commit 5ca0339

Please sign in to comment.