Skip to content

fix(drawer): Allow pFocusTrap to be disabled#19424

Open
ddpdoj wants to merge 1 commit into
primefaces:masterfrom
ddpdoj:issue-19422
Open

fix(drawer): Allow pFocusTrap to be disabled#19424
ddpdoj wants to merge 1 commit into
primefaces:masterfrom
ddpdoj:issue-19422

Conversation

@ddpdoj
Copy link
Copy Markdown

@ddpdoj ddpdoj commented Feb 23, 2026

Closes #19422

Currently, pFocusTrap is always enabled for instances of p-drawer, which for most cases is desirable. However, for the case when [dismissible]="false" [modal]="false", moving focus from the non-dismissible, non-modal drawer become impossible. This edge case is overcome in similar components by adding an input variable that allows pFocusTrapDisabled to be set, i.e. the dialog component.

@ddpdoj ddpdoj changed the title Update drawer.ts fix(drawer): Allow pFocusTrap to be disabled Feb 23, 2026
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.

pFocusTrap always enabled in Drawer

1 participant