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!
Confirm Dialog - Accept/Reject Button Focus
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
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
-
- Information
-
Who is online
Users browsing this forum: No registered users and 23 guests