UUI icon indicating copy to clipboard operation
UUI copied to clipboard

[PIckerInput]: entered value clears when user put pointer in input repeatedly

Open mari-shakhanava opened this issue 2 years ago • 4 comments

Description (optional)

This issue is about disappearing entered value when repeated putting pointer in the input field.

Steps to Reproduce

  1. PickerInput with searchPosition='input' prop.
  2. Start typing anything
  3. After appearing values in dropdown put pointer back in the input

https://github.com/epam/UUI/assets/70166849/8bbb4d45-a2c5-4edf-9e03-167da7d6fb26

Actual result

Entered value cleared

Expected result

The entered text should stay unchanged. As is in PickerInput with searchPosition='body', so user can continue his search

Environment

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

  • UUI version: latest
  • Browser name: Chrome latest
  • Operating System: Windows latest

mari-shakhanava avatar Dec 07 '23 11:12 mari-shakhanava

Such behavior isn't related to the search typing, it's happening because we are clearing search value by picker close and in your case click in toggler of already opened Picker leads to its closing. I'm not sure that can do something with it, because both features - 'Toggle opened state by toggler click' and 'Clear search after dropdown close' is an a core ux requirements of this component. Probably we need to discuss, whether we need to close picker by click in toggler? @DzmitryTrubchyk what do you think? As a one more solution, I will recommend to use searchPosition='body' for majority of cases, because this pattern more clear and not so confused according to the UX.

AlekseyManetov avatar Dec 11 '23 15:12 AlekseyManetov

We've decided that we should not close body by click on toggler in case when searchPosition='input' and body is open now.

AlekseyManetov avatar Mar 14 '24 15:03 AlekseyManetov

Please pay attention on case from this ticket.

https://github.com/epam/UUI/assets/57751283/1101dd1e-a553-470e-b45f-3d7a0254460f

NatalliaAlieva avatar Apr 08 '24 09:04 NatalliaAlieva

[like] Dzmitry Trubchyk reacted to your message:


From: NatalliaAlieva @.> Sent: Monday, April 8, 2024 9:05:41 AM To: epam/UUI @.> Cc: Dzmitry Trubchyk @.>; Mention @.> Subject: Re: [epam/UUI] [PIckerInput]: entered value clears when user put pointer in input repeatedly (Issue #1822)

Please pay attention on case from thishttps://urldefense.com/v3/__https://github.com/epam/UUI/issues/2124__;!!GF_29dbcQIUBPA!3lnt3WywT66t6MImv9WdvbRmwyfeKxLvc_YUPadS7WpDbYhoi8AQM4x3-FVJt3el7qIQd4muZD2TKGpgOMeJUuaD1cQu0VQ$ ticket.

Linkhttps://urldefense.com/v3/__https://private-user-images.githubusercontent.com/17798957/319998520-6987deec-2efb-4aa1-8690-948f47d212bf.mov?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTI1NjU0NDQsIm5iZiI6MTcxMjU2NTE0NCwicGF0aCI6Ii8xNzc5ODk1Ny8zMTk5OTg1MjAtNjk4N2RlZWMtMmVmYi00YWExLTg2OTAtOTQ4ZjQ3ZDIxMmJmLm1vdj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA0MDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNDA4VDA4MzIyNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTUxNDMyM2FjZWYwOTBiOWZkMWM4Nzk5ZDIyODBmYzA0Y2VjMGQ1YThiNTI3YmVjYjlmMTVjYmExZWZiYTExMWYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.aTRFx7FPpHXYCdFPGPz5DLI_jv3KnqKM4lRlBrjBo8s__;!!GF_29dbcQIUBPA!3lnt3WywT66t6MImv9WdvbRmwyfeKxLvc_YUPadS7WpDbYhoi8AQM4x3-FVJt3el7qIQd4muZD2TKGpgOMeJUuaD7atot-s$ on video.

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/epam/UUI/issues/1822*issuecomment-2042237363__;Iw!!GF_29dbcQIUBPA!3lnt3WywT66t6MImv9WdvbRmwyfeKxLvc_YUPadS7WpDbYhoi8AQM4x3-FVJt3el7qIQd4muZD2TKGpgOMeJUuaDrabYtuI$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AKRKH6JGVP3VIIDRHWACMNTY4JMWLAVCNFSM6AAAAABAK4AFEKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBSGIZTOMZWGM__;!!GF_29dbcQIUBPA!3lnt3WywT66t6MImv9WdvbRmwyfeKxLvc_YUPadS7WpDbYhoi8AQM4x3-FVJt3el7qIQd4muZD2TKGpgOMeJUuaDfosj7CU$. You are receiving this because you were mentioned.Message ID: @.***>

DzmitryTrubchyk avatar Apr 08 '24 09:04 DzmitryTrubchyk