Skip to content

Commit

Permalink
comment specifying is intereacting
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta committed Dec 17, 2024
1 parent 84ef5c2 commit 16ed1ca
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,13 @@ function BaseFieldItem( {
expanded
className={ clsx(
'dataviews-field-control__field',
`dataviews-field-control__field-${ fieldId }`,
`dataviews-field-control__field-${ identifier }`,
// The actions are hidden when the mouse is not hovering the item, or focus
// is outside the item.
// For actions that require a popover, a menu etc, that would mean that when the interactive element
// opens and the focus goes there the actions would be hidden.
// To avoid that we add a class to the item, that makes sure actions are visible while there is some
// interaction with the item.
{ 'is-interacting': isInteracting }
) }
justify="flex-start"
Expand Down

0 comments on commit 16ed1ca

Please sign in to comment.