Skip to content
This repository has been archived by the owner on Mar 26, 2019. It is now read-only.

Fix people picker event handlers #162

Merged
merged 6 commits into from
Oct 21, 2016
Merged

Conversation

leddie24
Copy link
Collaborator

@leddie24 leddie24 commented Oct 21, 2016

Fixes #68 and #139

  • Add removeItem click handler inside of _clickHandler
  • Update Members count on removal/add
  • Fix css (persona was oval shaped in small breakpoint)

private _selectedPeople: NodeListOf<Element>;
private _selectedPeople: Element;
private _selectedCount: Element;
private _selectedPlural: HTMLElement;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there a good reason why this needs to be an HTMLElement vs plain Element?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I get a TS error for line 159 with type Element.

Property 'style' does not exist on type 'Element'

this._selectedPlural.style.display = (count === 1) ? "none" : "inline";

@Jahnp
Copy link
Collaborator

Jahnp commented Oct 21, 2016

Approved

Approved with PullApprove

@ericthompson
Copy link
Contributor

ericthompson commented Oct 21, 2016

Approved

Approved with PullApprove

@leddie24 leddie24 merged commit be3b05f into master Oct 21, 2016
@leddie24 leddie24 deleted the leddie24/people-picker-fixes branch October 21, 2016 22:29
@mikewheaton mikewheaton added this to the 1.2.0 milestone Nov 4, 2016
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.

6 participants