Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix column dragging in IE11 #110

Merged
merged 5 commits into from
Jan 18, 2017

Conversation

quixotically
Copy link
Contributor

@quixotically quixotically commented Jan 17, 2017

Description

Drag reordering did not work at all in IE11 because Array.prototype.find is not supported in it
Also, add host: 0.0.0.0 to the webpack-client.config.js so that developers can use VMs (such as when testing in IE11)

Motivation and Context

SS-18621

How Has This Been Tested?

Tested in column draggable example

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.

var isFixed = !!this.state.headFixedColumns.find(function(column) {
return column.props.columnKey === columnKey;
// No native support in IE11 for find, findIndex, or includes, so using every.
var isFixed = !this.state.headFixedColumns.every(function(column) {
Copy link
Contributor

Choose a reason for hiding this comment

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

instead of !every use some

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, didn't notice that some was native and supported! Thank you, that's much better - changed.

@KamranAsif
Copy link
Contributor

LGTM. I'll merge after tests pass

@KamranAsif KamranAsif merged commit 25d682d into schrodinger:master Jan 18, 2017
@quixotically quixotically deleted the SS-18621-CannotDragDropIE branch January 18, 2017 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants