primereact icon indicating copy to clipboard operation
primereact copied to clipboard

Multiselect filtering/( onBlur get triggered when you focus on Input field )

Open m-ivanova opened this issue 6 years ago • 1 comments

There is no guarantee in receiving an immediate response in GitHub Issue Tracker, If you'd like to secure our response, you may consider PrimeReact PRO Support where support is provided within 4 business hours

I'm submitting a ... (check one with "x")

[ x] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://forum.primefaces.org/viewforum.php?f=57

Codesandbox Case (Bug Reports)

https://codesandbox.io/s/primereact-test-xu6ob

Current behavior

When you use 'filter' property on Multiselect and onBlur event, onBlur gets triggered when you focus on the input field (filter)

Expected behavior

OnBlur event to get triggered when leaving the multiselect component Minimal reproduction of the problem with instructions 1.Open multiselect 2.Focus on the inputFiled 3.Check when onBlur event gets triggered

Please tell us about your environment:

Microsoft Windows, Visual Studio code

  • React version: 16.8.5

  • PrimeReact version: 3.3.2

  • Browser: [all | ]

  • Language: | TypeScript X.X | ES6/7 | ES5]

m-ivanova avatar Jul 09 '20 12:07 m-ivanova

This behavior is by design. It's focusing on input field. That's why onBlur is triggering when you click checkbox.

mcandu avatar Feb 10 '21 14:02 mcandu