-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Drag and Drop - Can't select text in an input without moving all item #14117
Comments
The problem with allowing text selection is that it can clash with the drag and drop. You could use a drag handle so text selection isn't disabled on the entire element. |
Closing this issue since it's working by design. |
The feature's you are attempting can be accomplished with the available API for Drag and Drop. Specifically in the examples provided in the examples https://material.angular.io/cdk/drag-drop/overview#disable-dragging You can see it's possible to disable dragging. I propose for your requirements simply add Another solution if this isn't what you're looking for would be to add drag handles which would resolve your issue of text selection as well as letting the end user know that this is something that can be dragged. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug, feature request, or proposal:
I'm using the new cdkDrag in a mat-list. It seems it can't handle text selection in an input.
What is the expected behavior?
I should be able to select the text in my input without my
mat-list-item
draggingWhat is the current behavior?
When I try to select text in my input all my component is dragging away
What are the steps to reproduce?
What is the use-case or motivation for changing an existing behavior?
Correcting a behaviour that is not working well
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
"@angular/cdk": "7.0.1", "@angular/material": "7.0.1", "@angular/core": "7.0.1", "typescript": "3.1.3"
The text was updated successfully, but these errors were encountered: