Skip to content

[Components]: onMouseEnter prop is not available in the ActionList/components/Item/Item.tsx  #8511

@fatimasajadi

Description

@fatimasajadi

Issue summary

The IndexTable component's bulkActions prop has an optional onMouseEnter prop in its type (ActionListSection) that is passed down to the ActionList/Components/Item/Item.tsx component, but it's not used in the Item.tsx. I need to use the onMouseEnter prop for a prefetch task that I am working on, and I don't have access to this prop until it's properly used in the Item.tsx component.

Expected behavior

With this fix we are able to access the onMouseEnter prop on the ActionList items.

Actual behavior

Steps to reproduce the problem

  1. Please create an ActionList
  2. Provide onMouseEnter to one of its items
  3. Observe that onMouseEnter never gets called

Reduced test case

The best way to get your bug fixed is to provide a reduced test case. This CodeSandbox template is a great starting point.

Specifications

  • Are you using the React components? (Y/N):
  • Polaris version number:
  • Browser:
  • Device:
  • Operating System:

Or run npx envinfo --system --binaries --browsers --npmPackages react,react-dom,@shopify/polaris to provide specifications on your environment including version numbers, browser, device, and operating system.

Paste the results here:

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions