Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

fix dropdown regression + test#78

Merged
Marc-Andre-Rivet merged 6 commits intomasterfrom
3.0-dropdown-save
Sep 11, 2018
Merged

fix dropdown regression + test#78
Marc-Andre-Rivet merged 6 commits intomasterfrom
3.0-dropdown-save

Conversation

@Marc-Andre-Rivet
Copy link
Copy Markdown
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

}

private handleChange = (idx: number, i: number, e: any) => {
private handleChange = (idx: number, i: number, value: any) => {
Copy link
Copy Markdown
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
Copy Markdown
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.


// Fallback method for paste handling in Chrome
// when no input element has focused inside the table
window.addEventListener('resize', this.handleResize);
Copy link
Copy Markdown
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
Copy Markdown
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.

2 participants