fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

[DetailsList] Lack of consistency between onColumnHeaderClick and onColumnHeaderContextMenu

Open sharpoverride opened this issue 9 years ago • 2 comments

Bug Report

  • Package version(s): 2.4.0
  • Browser and OS versions: none

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

Are you willing to submit a PR to fix? (Yes, No) No Requested priority: (Blocking, High, Normal, Low) Low

Describe the issue:

Take the definition of these two events, both related to the column header

    /** Callback for when the user clicks on the column header. */
    onColumnHeaderClick?: (ev?: React.MouseEvent<HTMLElement>, column?: IColumn) => void;
    /** Callback for when the user asks for a contextual menu (usually via right click) from a column header. */
    onColumnHeaderContextMenu?: (column?: IColumn, ev?: Event) => void;

Notice how the order of event, column is reversed

Actual behavior:

It is very confusing at the moment.

Expected behavior:

deprecate one of the event signature, and align the API. This will be a breaking change, so care should be taken as to when you do it.

If applicable, please provide a codepen repro:

sharpoverride avatar Mar 15 '17 14:03 sharpoverride

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions to Fabric React!

stale[bot] avatar Apr 11 '18 02:04 stale[bot]

This issue has been automatically closed because it has not had recent activity after being marked as stale. If you belive this issue is still a problem or should be reopened, please reopen it! Thank you for your contributions to Fabric React! Why am I receiving this notification?

stale[bot] avatar May 18 '18 22:05 stale[bot]