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

Allow 'disableSelection' to be disabled #68

Merged
merged 1 commit into from
Apr 7, 2015

Conversation

hailwood
Copy link
Contributor

@hailwood hailwood commented Apr 6, 2015

Currently disableSelection is always enabled.
This is useful for the drap/drop function, however in firefox this disables the ability to use GridfieldEditableColumns as you cannot focus the inputs.

This pull request allows you to either pass false as the second parameter to the constructor - or use ->setDisableSelection(false) to disable the disableSelection() call.

I had considered changing the behaviour so disableSelection() is called when you enable drag/drop and enableSelection() is called when you disable drag/drop but this still produces inconsistent results across browsers.

This change is 100% backwards compatible as the default is to enable disableSelection()

UndefinedOffset added a commit that referenced this pull request Apr 7, 2015
Allow 'disableSelection' to be disabled
@UndefinedOffset UndefinedOffset merged commit ff7a308 into UndefinedOffset:master Apr 7, 2015
@UndefinedOffset
Copy link
Owner

thanks :)

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.

2 participants