You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
onPress requires a pointer down event on the same element as pointer up. For menus,
we want to be able to have the pointer down on the trigger that opens the menu and
the pointer up on the menu item rather than requiring a separate press.
Pretty love how I can hold then up to select an item in the menu. But I thought that the requirement is a solved problem by MenuTrigger and SubmenuTrigger, right? Why it's a concern in scope of useSelectableItem?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
In short, I'd like to ask a way to make
GridListItem
be selectedonPress
, to make the UI behavior more aligned.This is how
GridListItem
currently working, the selecting behavior is not aligned:Screen.Recording.2024-08-21.at.7.35.26.PM.mov
In addition,
ListBoxItem
behave the same way:Screen.Recording.2024-08-21.at.7.43.10.PM.mov
The Decision on
useGridListItem
(useSelectableItem
)For
onPressStart
, I find this requirement :Pretty love how I can hold then up to select an item in the menu. But I thought that the requirement is a solved problem by
MenuTrigger
andSubmenuTrigger
, right? Why it's a concern in scope ofuseSelectableItem
?Beta Was this translation helpful? Give feedback.
All reactions