Uno.Themes icon indicating copy to clipboard operation
Uno.Themes copied to clipboard

[Gallery][WASM] Occasional Unintended Text Selection After Component Switch

Open jhanvi03 opened this issue 6 months ago • 5 comments

Current behavior

When switching from one component to another via the side menu and then returning to a textbox, the text within the textbox is occasionally pre-selected.

https://github.com/user-attachments/assets/f3ffa846-f580-45dc-9322-d63173b1c8bc

Screenshot 2024-08-21 at 11 55 29 AM

Expected behavior

When returning to the textbox after navigating between components, the text should remain unselected

How to reproduce it (as minimally and precisely as possible)

  1. Open Gallery Canary WSM.
  2. From the side menu, expand UI Components and click on Textbox.
  3. Observe that no text is automatically selected in the textbox.
  4. Now, switch to a different component from the side menu, then return to the Textbox component.
  5. Notice that upon returning, the text in the textbox appears to be automatically selected.

Environment

Nuget Package:

Package Version(s):

Affected platform(s):

  • [ ] iOS
  • [ ] Android
  • [ ] WebAssembly
  • [ ] UWP
  • [ ] MacOS

Anything else we need to know?

Could be related to : https://github.com/unoplatform/uno/pull/17633 , https://github.com/unoplatform/uno/issues/17914

jhanvi03 avatar Aug 21 '24 16:08 jhanvi03