Confirm Dialog - Accept/Reject Button Focus

UI Components for React
Post Reply
sanfordandrew
Posts: 4
Joined: 15 Jan 2021, 20:03

02 Jan 2023, 18:07

In the confirm dialog, is there a way to indicate which button, "accept" or "reject" has focus in PrimeReact? Currently, it appears that the "accept" button always gets focus. Order of accept and reject doesn't matter.

confirmDialog({
message: "Are you sure you want to continue?",
header: "You Haven't Saved Your Changes",
icon: "pi pi-exclamation-triangle",
reject: () => rejectMethod(),
accept: () => acceptMethod(),
});

Thanks!

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

05 Jan 2023, 21:11

No but if you need to choose which has focus submit a github enhancement ticket: https://github.com/primefaces/primereact/issues
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 23 guests