fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

[DetailsList] Impossible to trigger the click event of a child of a cell in the DetailsHeader

Open umaknow-jessica opened this issue 9 years ago • 1 comments

Bug Report

  • Package version(s): 2.31.0
  • Browser and OS versions: Internet Explorer 11.540.15063.0

Priorities and help requested (not applicable if asking question):

Are you willing to submit a PR to fix? No

Requested priority: Blocking

Products/sites affected: SharePoint Framework Webpart/DetailsList component

Describe the issue:

In IE, in the DetailsList component, in the DetailsHeader, it is not possible to trigger an onClick event on a child of a cell (example: I want a contextual menu to open when I click the dropdown chevron). I even tried to bind an onClick event on the element with jquery, but I can't click on the icon. If I move the icon outside of it's parent, the click event works. It works in Chrome. I tried to remove the custom css, but it doesn't change anything. I tried to put the z-index of the icon to the max, but it doesn't work.

IE

image

IE if I move the chevron outside of the cell

image

Chrome

image

Actual behavior:

Impossible to trigger the click event of a child of a cell in the DetailsHeader in the DetailsList component.

Expected behavior:

When I click on a child of a cell in the DetailsHeader in the DetailsList component, it should trigger it's onClick event.

If applicable, please provide a codepen repro:

umaknow-jessica avatar Aug 16 '17 16:08 umaknow-jessica

DetailsList now has the prop onRenderDetailsHeader that allows you to customize the header, including click events. Please reply if there are still any issues

erichdev avatar Oct 17 '17 00:10 erichdev