Change of pDroppableDisabled property after ngAfterViewInit doesn't change element's behavior #17598
Labels
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Describe the bug
Changing pDroppableDisabled after ngAfterViewInit does not change the drop behaviour. This was mentioned in bug #6694, but was not included in the fix.
I can get it working (in a copy of the directive) by replicating the fix and changing the following in https://github.com/primefaces/primeng/blob/master/packages/primeng/src/dragdrop/dragdrop.ts
from
@Input({ transform: booleanAttribute }) pDroppableDisabled: boolean = false;
to
Pull Request Link
#17597
Reason for not contributing a PR
Other Reason
Not sure how to go about a local build/test.
Reproducer
https://stackblitz.com/edit/github-q5oosh5u
Environment
Currently using primeng 17.18.15, but code is still the same in current master.
Angular version
17/18
PrimeNG version
v19
Node version
No response
Browser(s)
No response
Steps to reproduce the behavior
change pDroppableDisabled to true after component has initialised. Try dragging another element over the component.
Expected behavior
Expected to see the drop disabled image, but instead we still see the default action.
The text was updated successfully, but these errors were encountered: