Skip to content

BaseExtendedPicker: Hook up onPaste#3885

Merged
dzearing merged 13 commits intomicrosoft:masterfrom
amyngu:amyngu/paste
Feb 16, 2018
Merged

BaseExtendedPicker: Hook up onPaste#3885
dzearing merged 13 commits intomicrosoft:masterfrom
amyngu:amyngu/paste

Conversation

@amyngu
Copy link
Copy Markdown
Contributor

@amyngu amyngu commented Feb 6, 2018

Pull request checklist

  • Include a change request file using $ npm run change

Description of changes

  • Hook up onPaste
  • Hook up onItemSelected
  • Expose input element
  • Add generic classname for EditingItem

@amyngu amyngu requested review from dzearing and joschect February 6, 2018 00:27
}

public componentWillUnmount(): void {
this.input.inputElement.removeEventListener('paste', this.onPaste);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems like a bad idea. Why are we not using react eventing?

@amyngu
Copy link
Copy Markdown
Contributor Author

amyngu commented Feb 13, 2018

@dzearing Ping. Any other comments? Thanks!

@amyngu
Copy link
Copy Markdown
Contributor Author

amyngu commented Feb 14, 2018

@dzearing I think this is a simple change and I'd really appreciate a review/sign off!


private onClickIconButton = (action: (() => void) | undefined): () => void => {
return (): void => {
private onClickIconButton = (action: (() => void) | undefined): (ev: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement>) => void => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just make this a method? Also private names should start with _

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll change the function name.

I'm not sure I follow the first part of your comment. Do you mean make separate methods for the onRemoveItem and onExpandItem?

@dzearing dzearing merged commit 01b3c8a into microsoft:master Feb 16, 2018
Markionium added a commit to Markionium/office-ui-fabric-react that referenced this pull request Feb 18, 2018
* master: (71 commits)
  Applying package updates.
  Delete initials_2018-02-07-13-49.json
  Delete initials_2018-02-07-13-49.json
  Delete jolore-addingWorkWeekDateRange_2018-01-24-01-39.json
  Delete initials_2018-02-07-13-49.json
  Delete jolore-addingWorkWeekDateRange_2018-01-24-01-39.json
  Delete initials_2018-02-07-13-49.json
  Update .npmrc
  Cleaning Up Console Log in CommandBar Test (microsoft#4011)
  Convert Overlay to mergeStyles (microsoft#3978)
  ScrollablePane SCSS to MergeStyles Part 1: File Structure (microsoft#4008)
  [ContextualMenu] Fixes useTargetWidth property (microsoft#3943)
  DetailsList: Consider groups when setting aria-rowcount
  List: Add a _notifyPageChanges function  (microsoft#3990)
  Applying package updates.
  Migrating Coachmark to main Package, Added a beak component and updated experiment PositioningContainer. (microsoft#3919)
  Update package.json
  Added enum for triggering menu with arrow keys and bool to allow it or not (microsoft#3950)
  BaseExtendedPicker: Hook up onPaste (microsoft#3885)
  FocusUtil: fix getPreviousElement to include previous sibling elements correctly (microsoft#3928)
  ...
@microsoft microsoft locked as resolved and limited conversation to collaborators Aug 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants