Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
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
2 changes: 1 addition & 1 deletion dash_table/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dash_table/demo.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/dash-table/components/Cell/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ export default class Cell extends Component<ICellProps, ICellState> {
}

handleKeyDown = (e: KeyboardEvent) => {
if (e.keyCode !== KEY_CODES.ENTER) {
if (e.keyCode !== KEY_CODES.ENTER && e.keyCode !== KEY_CODES.TAB) {
return;
}

Expand Down
16 changes: 16 additions & 0 deletions tests/cypress/tests/server/dash_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,22 @@ describe('dash basic', () => {
});
});

// https://github.com/plotly/dash-table/issues/107
it('can edit last and update dataframe on "tab"', () => {
DashTable.getCell(249, 0).click();
DOM.focused.then($input => {
const initialValue = $input.val();

DOM.focused.type(`abc`);

cy.tab()

cy.get('#container').should($container => {
expect($container.first()[0].innerText).to.equal(`[249][0] = ${initialValue} -> abc`);
});
});
});

it('can edit last and update dataframe when clicking outside of cell', () => {
DashTable.getCell(249, 0).click();
DOM.focused.then($input => {
Expand Down