unoplatform / Uno.Gallery

The Uno Platform Gallery application
https://platform.uno/
Other
154 stars 44 forks source link

Click on disabled control has unintended effects #1127

Open ygoe opened 4 months ago

ygoe commented 4 months ago

Current behavior

The gallery app showcases a few basic controls in different themes. This includes disabled controls. Trying to interact with these usually doesn't have any effect. But here, it does. The view scrolls up and the tab headers are visible twice. See steps below. I can scroll down again afterwards and on any scroll movement, the duplicate tab headers also disappear. (BTW, changing tabs from either copy immediately after clicking the disabled control will properly update both copies of the tab buttons.)

I'm not sure if this is a problem in Uno or just the gallery app. I suppose the app doesn't do anything special here, so the problem would lie in Uno itself and possibly affect all apps.

Expected behavior

None of this should happen.

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

  1. Open https://gallery.platform.uno/
  2. Scroll the main content down until the theme tabs become sticky
  3. Click into an enabled control, for example a text box or checkbox
  4. Click into a disabled control

Environment

I cannot tell what you used to build that application. I'm very new to Uno and am just exploring it as of yet.

My environment is Firefox 127 on Windows 11.

Anything else we need to know?

Thanks for the nice conversations and interesting presentation at DWX in Nürnberg this week! 😀

kazo0 commented 4 months ago

Can confirm this also happens in Chrome:

https://github.com/unoplatform/Uno.Gallery/assets/4793020/6016fa7b-f7cb-49fe-a8c1-8fcf4bc11b24

kazo0 commented 4 months ago

Actually this has already been fixed! I believe by this: https://github.com/unoplatform/uno/pull/15354

We will need to release a new version of the Gallery with the newer Uno version where the fix is present