react-dropdown-select icon indicating copy to clipboard operation
react-dropdown-select copied to clipboard

Require onInput/onSelect callback to fulfil some use case.

Open NishilSB opened this issue 2 years ago • 2 comments

we need to have onInput/onSelect event call back to overcome issue which is creating by onChange event.

when I set an object in the values prop to pre-populate a value in RDS programmatically, it also triggering onChange event, which unwantedly executing the code written inside onChange event handler which is creating a bug in my react app.

It will be great to interduce onSelect/onInput event callback function which only triggers where a user/human select a value from the dropdown.

Thanks.

NishilSB avatar Jul 07 '23 13:07 NishilSB

Can you suggest a PR that is working on your scenario? I think the behavior you describing is correct.

On Fri, Jul 7, 2023, 4:17 PM NishilSB @.***> wrote:

we need to have onInput/onSelect event call back to overcome issue which is creating by onChange event.

when I set an object in the values prop to pre-populate a value in RDS programmatically, it also triggering onChange event, which unwantedly executing the code written inside onChange event handler which is creating a bug in my react app.

It will be great to interduce onSelect/onInput event callback function which only triggers where a user/human select a value from the dropdown.

Thanks.

— Reply to this email directly, view it on GitHub https://github.com/sanusart/react-dropdown-select/issues/283, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACBLRVGOSYRH4F4LRIYC53XPAD6TANCNFSM6AAAAAA2BZ3HVY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

sanusart avatar Jul 08 '23 19:07 sanusart

i don't have a working PR yet, Iam requesting a feature.

NishilSB avatar Jul 10 '23 16:07 NishilSB