Sitelet https://github.com/primefaces/primeng/pull/19612
Skip to content
This repository was archived by the owner on Jun 28, 2026. It is now read-only.

fix: DynamicDialogRef.onDragStart never emits (#19611) - #19612

Open
gamble4846 wants to merge 1 commit into
primefaces:masterfrom
gamble4846:master
Open

fix: DynamicDialogRef.onDragStart never emits (#19611)#19612
gamble4846 wants to merge 1 commit into
primefaces:masterfrom
gamble4846:master

Conversation

@gamble4846

Copy link
Copy Markdown

Summary

  • Add onDragStart output to p-dialog and emit it from initDrag()
  • Bridge (onDragStart) in DynamicDialog to DynamicDialogRef.dragStart()
  • Add unit tests for both components

Fixes #19611

Problem

DynamicDialogRef.onDragStart never emitted in v21 because drag handling moved into p-dialog, but only onDragEnd was wired through to the ref.

Test plan

  • dialog.spec.tsonDragStart emission from initDrag()
  • dynamicdialog.spec.tsonDialogDragStart forwards to ref
  • Manual repro: open DialogService dialog, drag header, confirm onDragStart and onDragEnd both fire

Defect Fixes

When submitting a PR, please also create an issue documenting the error and manually link to an issue.

Feature Requests

Due to company policy, we are unable to accept feature request PRs with significant changes as such cases has to be implemented by our team following our own processes.
Smaller scaled feature implementations such as adding a property to a component will be considered for merging.

- Add `onDragStart` output to `p-dialog` and emit it from `initDrag()`
- Bridge `(onDragStart)` in `DynamicDialog` to `DynamicDialogRef.dragStart()`
- Add unit tests for both components

Fixes primefaces#19611

## Problem
`DynamicDialogRef.onDragStart` never emitted in v21 because drag handling moved into `p-dialog`, but only `onDragEnd` was wired through to the ref.

## Test plan
- [x] `dialog.spec.ts` — `onDragStart` emission from `initDrag()`
- [x] `dynamicdialog.spec.ts` — `onDialogDragStart` forwards to ref
- [x] Manual repro: open `DialogService` dialog, drag header, confirm `onDragStart` and `onDragEnd` both fire
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DynamicDialogRef.onDragStart never emits in v21

1 participant