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
CdkDrag: cdkDragHandleDisabled does not work if it is set on component instantiation #16642
Closed
Labels
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Comments
Possible solution is to add a return merge(...handles.map(item => item._stateChanges)); return merge(...handles.map(item => item._stateChanges.pipe(startWith(item)))); |
crisbeto
added
has pr
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
labels
Jul 30, 2019
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Jul 30, 2019
Fixes the `CdkDrag` directive not picking up the `disabled` state of a handle, if it was set before `CdkDrag` subscribed to its `_stateChanges` stream. Fixes angular#16642.
jelbourn
pushed a commit
that referenced
this issue
Sep 6, 2019
Fixes the `CdkDrag` directive not picking up the `disabled` state of a handle, if it was set before `CdkDrag` subscribed to its `_stateChanges` stream. Fixes #16642.
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Nov 2, 2019
Fixes the `CdkDrag` directive not picking up the `disabled` state of a handle, if it was set before `CdkDrag` subscribed to its `_stateChanges` stream. Fixes angular#16642.
jelbourn
pushed a commit
that referenced
this issue
Jan 27, 2020
Fixes the `CdkDrag` directive not picking up the `disabled` state of a handle, if it was set before `CdkDrag` subscribed to its `_stateChanges` stream. Fixes #16642.
jelbourn
pushed a commit
that referenced
this issue
Jan 27, 2020
yifange
pushed a commit
to yifange/components
that referenced
this issue
Jan 30, 2020
…lar#16643) Fixes the `CdkDrag` directive not picking up the `disabled` state of a handle, if it was set before `CdkDrag` subscribed to its `_stateChanges` stream. Fixes angular#16642.
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Reproduction
Go to StackBlitz - Handle Disabled Example.
The initial state for
cdkDragHandleDisabled
isdisabled
but dragging works, only after clicking onenable
and after ondisable
the handle is actually disabled.Expected Behavior
The handle should be disabled at the beginning.
Actual Behavior
The handle is not disabled at the beginning.
Environment
The text was updated successfully, but these errors were encountered: