primefaces / primereact

The Most Complete React UI Component Library
https://primereact.org
MIT License
6.96k stars 1.06k forks source link

Checkbox: onBlur does not forward event object #7440

Open AndrewBoklashko opened 5 days ago

AndrewBoklashko commented 5 days ago

Describe the bug

  1. onBlur is executed with undefined as the first argument
  2. onBlur is executed twice

image

Reproducer

https://stackblitz.com/edit/vitejs-vite-v4atuv

System Information

"primereact": "10.8.4"
"react": "^18.2.0"
"react-dom": "^18.2.0"

Steps to reproduce the behavior

  1. Click on checkbox
  2. Click outside the checkbox

Expected behavior

  1. onBlur is executed with event object passed as the first argument
  2. onBlur is executed once