Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

fix dropdown regression + test #78

Merged
merged 6 commits into from
Sep 11, 2018
Merged

Conversation

Marc-Andre-Rivet
Copy link
Contributor

@Marc-Andre-Rivet Marc-Andre-Rivet commented Sep 11, 2018

  • fix dropdown behavior on click (saves selection)

  • additional test for dropdown

  • fix border style on active cell

  • resize on zoom change

@@ -128,7 +128,7 @@ export default class CellFactory {
}
}

private handleChange = (idx: number, i: number, e: any) => {
private handleChange = (idx: number, i: number, value: any) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Doing away with the event wrapper, it served no purpose at this point

DashTable.getCell(0, 8).within(() => {
cy.get('.Select-value-label').should('have.html', expectedValue);
});
});
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Click on a cell with dropdown, check current value, select a different value, make sure it's applied.

@@ -45,11 +45,13 @@ export default class ControlledTable extends Component<ControlledTableProps> {

// Fallback method for paste handling in Chrome
// when no input element has focused inside the table
window.addEventListener('resize', this.handleResize);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Zoom triggers a resize event, so does resizing the window/browser.. but that's the best we have access to.

Copy link
Contributor

@wbrgss wbrgss left a comment

Choose a reason for hiding this comment

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

LGTM. I can confirm the three issues #68 #73 and #76 have been fixed.

@Marc-Andre-Rivet Marc-Andre-Rivet merged commit 555e5ca into master Sep 11, 2018
@Marc-Andre-Rivet Marc-Andre-Rivet deleted the 3.0-dropdown-save branch September 27, 2018 15:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants